removeddit/server-config/basic
2017-11-12 01:24:24 +01:00

29 lines
484 B
Text

server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/removeddit;
index about.html;
server_name _;
location ~* /r/[a-zA-Z0-9]+/[a-zA-Z0-9] {
try_files /thread.html /thread.html =404;
}
location /r/ {
try_files /subreddit.html /subreddit.html =404;
}
location /static/ {
try_files $uri $uri/ =404;
}
location /about/ {
try_files /about.html /about.html =404;
}
location / {
try_files /subreddit.html /subreddit.html =404;
}
}