nginx_doxen 591 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80;
  3. listen [::]:80; ## listen for ipv6
  4. root /var/www/doxen/htdocs;
  5. index index.php index.html index.htm;
  6. server_name doxen;
  7. access_log /var/log/nginx/doxen_access.log;
  8. error_log /var/log/nginx/doxen_error.log;
  9. location / {
  10. try_files $uri $uri/ =404;
  11. }
  12. location ~ \.php$ {
  13. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  14. # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  15. # With php5-cgi alone:
  16. #fastcgi_pass 127.0.0.1:9000;
  17. # With php5-fpm:
  18. fastcgi_pass unix:/var/run/php5-fpm.sock;
  19. fastcgi_index index.php;
  20. include fastcgi_params;
  21. }
  22. }