Guest User

Nginx Config

a guest
Apr 28th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.50 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment