123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- root /var/www/html;
-
- index index.html index.htm index.nginx-debian.html index.php;
- server_name _;
- location / {
-
-
- try_files $uri $uri/ =404;
- }
-
- location ~ \.php$ {
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
-
-
- location ~ /\.ht {
- deny all;
- }
-
- location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
- access_log off;
- expires max;
- }
- location ~ /(libraries|setup/frames|setup/libs) {
- deny all;
- return 404;
- }
- location /nginx_status {
- stub_status on;
- access_log off;
- allow 127.0.0.1;
-
- deny all;
- }
- }
|