|
|
|
@ -10,13 +10,26 @@ server { |
|
|
|
|
deny all; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location ~ /\. { |
|
|
|
|
access_log off; log_not_found off; deny all; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location ~ ~$ { |
|
|
|
|
access_log off; log_not_found off; deny all; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location ~ /\.ht { |
|
|
|
|
deny all; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location / { |
|
|
|
|
index index.php index.html index.htm; |
|
|
|
|
try_files $uri $uri/ /index.php?$args; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location ~* \.(gif|jpg|jpeg|png|css|js)$ { |
|
|
|
|
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html|woff|woff2|svg|js)$ { |
|
|
|
|
expires max; |
|
|
|
|
access_log off; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location ~ \.php$ { |
|
|
|
|