Advertisement
Guest User

Untitled

a guest
May 29th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. root /home/app/websites/playfulbee_blog/;
  5. index index.php index.html index.htm;
  6.  
  7. server_name blog.playfulbee.com;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.php?q=$uri&$args;
  11. }
  12.  
  13. error_page 404 /404.html;
  14.  
  15. error_page 500 502 503 504 /50x.html;
  16. location = /50x.html {
  17. root /usr/share/nginx/www;
  18. }
  19.  
  20. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  21. location ~ \.php$ {
  22. try_files $uri =404;
  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.  
  30. client_max_body_size 10m;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement