Advertisement
Guest User

nginx config

a guest
Sep 9th, 2014
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. server {
  2.         #listen 80 default_server;
  3.         listen 127.0.0.1:8080; ## listen for ipv4; this line is default and implied
  4.         listen [::]:80 default_server ipv6only=on;
  5.         port_in_redirect off;
  6.         root /var/www/html;
  7.         index index.php index.html index.htm;
  8.  
  9.         # Make site accessible from http://localhost/
  10.         server_name http://128.199.183.104;
  11.  
  12.         location / {
  13.                 # First attempt to serve request as file, then
  14.                 # as directory, then fall back to displaying a 404.
  15.                 #try_files $uri $uri/ =404;
  16.                 try_files $uri $uri/ /index.php?q=$uri&$args;
  17.                 # Uncomment to enable naxsi on this location
  18.                 # include /etc/nginx/naxsi.rules
  19.         }
  20.  
  21.         # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
  22.         #location /RequestDenied {
  23.         #       proxy_pass http://127.0.0.1:8080;
  24.         #}
  25.  
  26.         error_page 404 /404.html;
  27.  
  28.         # redirect server error pages to the static page /50x.html
  29.         #
  30.         error_page 500 502 503 504 /50x.html;
  31.         location = /50x.html {
  32.                 root /usr/share/nginx/html;
  33.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement