Advertisement
Guest User

Untitled

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