server { listen 80; server_name cvqrbarkcbernaf6.onion; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; index index.html; # try_files $uri.html $uri $uri/ /index.html; try_files $uri.html $uri $uri/ =404; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} # cache our assets location /assets { root /usr/share/nginx/html; expires 1h; add_header Cache-Control "public"; } }