Advertisement
Guest User

Untitled

a guest
May 31st, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. upstream php {
  2.         server unix:/var/run/php5-fpm.sock;
  3.         #server 127.0.0.1:9000;
  4. }
  5.  
  6. server {
  7.         root /home/www/public/forum;
  8.         index index.php;
  9.  
  10.         location ~ \.php$ {
  11.                 include fastcgi_params;
  12.                 fastcgi_intercept_errors on;
  13.                 fastcgi_pass php;
  14.         }
  15. }
  16.  
  17. server {
  18.         root /home/www/public/forum;
  19.         index index.php index.html index.htm;
  20.  
  21.         server_name forum.example.com;
  22.  
  23.         location / {
  24.                 try_files $uri $uri/ /index.php;
  25.         }
  26.  
  27.         error_page 404 /404.html;
  28.  
  29.         location ~ \.php$ {
  30.                 include fastcgi_params;
  31.                 fastcgi_intercept_errors on;
  32.                 fastcgi_pass php;
  33.         }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement