Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. root /usr/share/nginx/html/codeigniter;
  5. index index.html index.php;
  6.  
  7. location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
  8. expires max;
  9. log_not_found off;
  10. }
  11.  
  12. location / {
  13. try_files $uri $uri/ /index.php;
  14. }
  15.  
  16. location ~* \.php$ {
  17. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  18. fastcgi_pass unix:/var/run/php5-fpm.sock;
  19. fastcgi_index index.php;
  20. include fastcgi_params;
  21. fastcgi_buffer_size 16k;
  22. fastcgi_buffers 4 16k;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement