Advertisement
Guest User

Untitled

a guest
Feb 5th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name <my domain but i put it away>.com;
  5. index index.php index.html index.htm;
  6.  
  7. access_log /usr/share/nginx/logs/access_log;
  8. error_log /usr/share/nginx/logs/error_log;
  9.  
  10. location / {
  11. root /usr/share/nginx/html;
  12. #
  13. # First attempt to serve request as file, then
  14. # as directory, then fall back to index.php
  15. try_files $uri $uri/ /index.php;
  16. }
  17.  
  18.  
  19. location ~ \.php$ {
  20. include fastcgi_params;
  21.  
  22. root /usr/share/nginx/html;
  23.  
  24. try_files $uri =404;
  25. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  26. fastcgi_pass unix:/var/run/php5-fpm.sock;
  27. fastcgi_index index.php;
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement