Advertisement
Guest User

Untitled

a guest
Sep 15th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name www.domain.com domain.com;
  4. access_log /home/user101/unic/logs/access.log;
  5. error_log /home/user101/unic/logs/error.log;
  6.  
  7. location / {
  8. root /home/user101/unic;
  9. index index.html index.htm;
  10. proxy_set_header X-Real-IP $remote_addr;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header Host $http_host;
  13. proxy_set_header X-NginX-Proxy true;
  14. proxy_pass http://172.38.421.49:3000/;
  15. proxy_redirect off;
  16. }
  17. }
  18.  
  19. ---------------------------------------------------------------------------------
  20. i want to add php fast cgi, where this should go?
  21.  
  22. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  23. #
  24. location ~ \.php$ {
  25. fastcgi_pass 127.0.0.1:9000;
  26. fastcgi_index index.php;
  27. fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
  28. include fastcgi_params;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement