46 lines
926 B
Plaintext
46 lines
926 B
Plaintext
server {
|
|
listen 80 ;
|
|
listen [::]:80 ;
|
|
|
|
server_name dmz.rs decentrala.org www.dmz.rs www.decentrala.org krov.dmz.rs krov.decentrala.org 64l3awuotocv6ynibul6malho6wdorggjrz6fiyuselniifhdv2kv6qd.onion;
|
|
|
|
autoindex off;
|
|
default_type "text/html";
|
|
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
error_page 404 /404.html;
|
|
|
|
root /var/www/dmzrs;
|
|
|
|
# If page doesn't exist try appending .html to the end
|
|
location / {
|
|
try_files $uri $uri.html;
|
|
}
|
|
|
|
# Don't append .html if url is just / , since there is no file named /.html
|
|
location = / {
|
|
}
|
|
|
|
# If url ends with .html don't reddirect
|
|
location ~* \.html$ {
|
|
}
|
|
|
|
# If url is /en/ set english index file
|
|
location = /en/ {
|
|
try_files $uri $uri/index.html;
|
|
}
|
|
|
|
location /account/ {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_pass http://192.168.1.211$request_uri;
|
|
}
|
|
|
|
location = /account {
|
|
try_files $uri $uri.html;
|
|
}
|
|
|
|
}
|