Guest User

Untitled

a guest
Apr 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # default server
  2. server {
  3. listen 80;
  4. server_name local.kohanaphp.com;
  5.  
  6. root /Volumes/Webserver/Checkout/projects/kohana/v3;
  7.  
  8. location / {
  9. index index.php index.html index.htm;
  10. try_files $uri $uri/ index.php$uri;
  11. }
  12.  
  13. error_page 500 502 503 504 /50x.html;
  14. location = /50x.html {
  15. root /opt/local/share/nginx/html;
  16. }
  17.  
  18. location ~ \.php($|/) {
  19. set $script index.php;
  20. set $path_info "";
  21. if ($uri ~ "^(.+\.php)(/.*)") {
  22. set $script $1;
  23. set $path_info $2;
  24. }
  25. fastcgi_param PATH_INFO $path_info;
  26.  
  27. include /opt/local/etc/nginx/fastcgi.conf;
  28.  
  29. fastcgi_pass 127.0.0.1:9000;
  30. fastcgi_index index.php;
  31. fastcgi_param SCRIPT_FILENAME $document_root/$script;
  32. }
  33. }
Add Comment
Please, Sign In to add comment