| 12345678910111213141516171819202122232425262728293031323334353637 |
- server {
- listen 80 default_server;
- root /opt/Eye/html;
- index index.html index.php;
- server_name _;
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- error_page 404 302 301 /public/blocked.php;
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
- # fastcgi_pass 127.0.0.1:9000;
- }
- location ~ /cfg {
- deny all;
- }
- location ~ /inc {
- deny all;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- location ~ /\.ht {
- deny all;
- }
- }
|