Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. server {
  2.   listen  80;
  3.   server_name sign.io *.sign.io;
  4.   root /home/sites/sign.io/home/html;
  5.   index index.php index.html index.htm;
  6.  
  7.   access_log  /home/sites/sign.io/logs/access.log  main;
  8.   error_log  /home/sites/sign.io/logs/error.log;
  9.  
  10.   location / {
  11.     try_files $uri /index.php;
  12.   }
  13.   error_page   500 502 503 504  /50x.html;
  14.   location = /50x.html {
  15.     root   /usr/local/www/nginx-dist;
  16.   }
  17.   location /index.php {
  18.     fastcgi_pass   174.142.193.58:9000;
  19.     fastcgi_index  index.php;
  20.     fastcgi_param  SCRIPT_FILENAME  /home/sites/sign.io/home/html$fastcgi_script_name;
  21.     include        fastcgi_params;
  22.     }
  23.  
  24.    location ~\.php$ { rewrite ^ /index.php; }
  25.  
  26.     location ~ /\.ht {
  27.      deny  all;
  28.   }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement