Guest User

Untitled

a guest
Jan 30th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. server {
  2.     listen   80;
  3.    # server_name  localhost;
  4.     server_name 127.0.0.1;
  5.  
  6.     #charset koi8-r;
  7.     #access_log  /var/log/nginx/log/host.access.log  main;
  8.  
  9.     root   /usr/share/nginx/html;
  10.     index index.php index.html index.htm;
  11.  
  12.     location / {
  13.        # root   /usr/share/nginx/html;
  14.        # index  index.html index.htm index.php;
  15.         try_files $uri $uri/ = 404;
  16.     }
  17.  
  18.     error_page 404 /404.html;
  19.     error_page 500 502 503 504 /50x.html;
  20. #    location = /50x.html {
  21. #        root /usr/share/nginx/html;
  22. #    }
  23.  
  24. #    location ~ \.php${
  25. #        try_files $uri =404;
  26. #        fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  27. #        fastcgi_index index.php;
  28. #        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  29.        # include fastcgi_params;
  30. #    }
  31.  
  32.     #error_page  404              /404.html;
  33.     # redirect server error pages to the static page /50x.html
  34.     #
  35.     error_page   500 502 503 504  /50x.html;
  36.     location = /50x.html {
  37.         root   /usr/share/nginx/html;
  38.     }
  39.  
  40.     # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  41.     #
  42.     #location ~ \.php$ {
  43.     #    proxy_pass   http://127.0.0.1;
  44.     #}
  45.  
  46.     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  47.     #
  48.     #location ~ \.php$ {
  49.     #    root           html;
  50.     #    fastcgi_pass   127.0.0.1:9000;
  51.     #    fastcgi_index  index.php;
  52.     #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  53.     #    include        fastcgi_params;
  54.     #}
  55.     # deny access to .htaccess files, if Apache's document root
  56.     # concurs with nginx's one
  57.     #
  58.     #location ~ /\.ht {
  59.     #    deny  all;
  60.     #}
  61. }
Advertisement
Add Comment
Please, Sign In to add comment