Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name example.com www.example.com;
  4. root /var/www/public;
  5.  
  6. location / {
  7. index index.html index.htm index.php;
  8. try_files $uri $uri/ /index.php?$query_string;
  9. include /etc/nginx/fastcgi_params;
  10. }
  11.  
  12. location ~ .php$ {
  13. fastcgi_pass 127.0.0.1:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME $request_filename;
  16. include /etc/nginx/fastcgi_params;
  17. }
  18.  
  19. sendfile off;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement