Advertisement
Guest User

blog.mydomian.com

a guest
May 31st, 2013
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. server {
  2. listen 8080;
  3.  
  4.  
  5. root /usr/share/nginx/www/blog.mydomain.com;
  6. index index.php index.html index.htm;
  7.  
  8. server_name blog.mydomain.com;
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php?q=$uri&$args;
  12. }
  13.  
  14. error_page 404 /404.html;
  15.  
  16. error_page 500 502 503 504 /50x.html;
  17. location = /50x.html {
  18. root /usr/share/nginx/www;
  19. }
  20.  
  21. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9$
  22. location ~ \.php$ {
  23. fastcgi_pass 127.0.0.1:9000;
  24. # With php5-fpm:
  25. fastcgi_pass unix:/var/run/php5-fpm.sock;
  26. fastcgi_index index.php;
  27. include fastcgi_params;
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement