default.conf 876 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. server {
  2. listen 80;
  3. server_name cvqrbarkcbernaf6.onion;
  4. #charset koi8-r;
  5. #access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. root /usr/share/nginx/html;
  8. index index.html;
  9. # try_files $uri.html $uri $uri/ /index.html;
  10. try_files $uri.html $uri $uri/ =404;
  11. }
  12. error_page 404 /404.html;
  13. # redirect server error pages to the static page /50x.html
  14. #
  15. error_page 500 502 503 504 /50x.html;
  16. location = /50x.html {
  17. root /usr/share/nginx/html;
  18. }
  19. # deny access to .htaccess files, if Apache's document root
  20. # concurs with nginx's one
  21. #
  22. #location ~ /\.ht {
  23. # deny all;
  24. #}
  25. # cache our assets
  26. location /assets {
  27. root /usr/share/nginx/html;
  28. expires 1h;
  29. add_header Cache-Control "public";
  30. }
  31. }