SHOW:
|
|
- or go back to the newest paste.
| 1 | server {
| |
| 2 | root /usr/share/nginx/daviewales.tk; | |
| 3 | index index.html index.htm; | |
| 4 | ||
| 5 | server_name localhost; | |
| 6 | ||
| 7 | location / {
| |
| 8 | ssi on; | |
| 9 | set $inc $request_uri; | |
| 10 | if (!-f $request_filename) {
| |
| 11 | rewrite ^ /index.html last; | |
| 12 | } | |
| 13 | ||
| 14 | ||
| 15 | try_files $uri $uri/index.html $uri/index.htm $uri/ =404; | |
| 16 | index index.html index.htm; | |
| 17 | } | |
| 18 | ||
| 19 | ||
| 20 | location ~ /\. { access_log off; log_not_found off; deny all; }
| |
| 21 | location ~ ~$ { access_log off; log_not_found off; deny all; }
| |
| 22 | } |