Advertisement
Guest User

Untitled

a guest
Mar 24th, 2015
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. server {
  2. server_name 185.25.119.13;
  3. root /srv/www/phabricator/src/phabricator/webroot;
  4.  
  5. location ~ \.php$ {
  6. access_log /srv/www/phabricator/logs/access.log;
  7. try_files $uri =404;
  8. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  9. fastcgi_pass php;
  10. fastcgi_index index.php;
  11. include fastcgi_params;
  12. }
  13. location / {
  14. index index.php;
  15. access_log /srv/www/phabricator/logs/access.log;
  16. }
  17.  
  18. location = /favicon.ico {
  19. try_files $uri =204;
  20. }
  21.  
  22. location /index.php {
  23. access_log /srv/www/phabricator/logs/access.log;
  24.  
  25. fastcgi_pass php;
  26. fastcgi_index index.php;
  27. #required if PHP was built with --enable-force-cgi-redirect
  28. fastcgi_param REDIRECT_STATUS 200;
  29.  
  30. #variables to make the $_SERVER populate in PHP
  31. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32. fastcgi_param QUERY_STRING $query_string;
  33. fastcgi_param REQUEST_METHOD $request_method;
  34. fastcgi_param CONTENT_TYPE $content_type;
  35. fastcgi_param CONTENT_LENGTH $content_length;
  36.  
  37. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  38.  
  39. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
  40. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
  41.  
  42. fastcgi_param REMOTE_ADDR $remote_addr;
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement