Eye 639 B

12345678910111213141516171819202122232425262728293031323334353637
  1. server {
  2. listen 80 default_server;
  3. root /opt/Eye/html;
  4. index index.html index.php;
  5. server_name _;
  6. location / {
  7. # First attempt to serve request as file, then
  8. # as directory, then fall back to displaying a 404.
  9. try_files $uri $uri/ =404;
  10. }
  11. error_page 404 302 301 /public/blocked.php;
  12. location ~ \.php$ {
  13. include snippets/fastcgi-php.conf;
  14. fastcgi_pass unix:/run/php/php7.4-fpm.sock;
  15. # fastcgi_pass 127.0.0.1:9000;
  16. }
  17. location ~ /cfg {
  18. deny all;
  19. }
  20. location ~ /inc {
  21. deny all;
  22. }
  23. # deny access to .htaccess files, if Apache's document root
  24. # concurs with nginx's one
  25. location ~ /\.ht {
  26. deny all;
  27. }
  28. }