Guest User

Untitled

a guest
Apr 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name remotefulltime.com www.remotefulltime.com;
  4.  
  5. # note that these lines are originally from the "location /" block
  6. root path_to_web_folder;
  7.  
  8. index index.php index.html index.htm;
  9.  
  10. location / {
  11. try_files $uri $uri/ =404;
  12. }
  13.  
  14. error_page 404 /404.html;
  15. error_page 500 502 503 504 /50x.html;
  16. #location = /50x.html {
  17. # root /usr/share/nginx/html;
  18. #}
  19.  
  20. location ~ \.php$ {
  21. try_files $uri =404;
  22. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  23. fastcgi_index index.php;
  24. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25. #fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  26. #fastcgi_param DOCUMENT_ROOT $realpath_root;
  27. include fastcgi_params;
  28. }
  29. }
Add Comment
Please, Sign In to add comment