Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name localhost;
  4.  
  5. root /var/www/html
  6.  
  7. location / {
  8. root /var/www/html
  9. index index.php index.html index.htm;
  10. }
  11.  
  12. error_page 500 502 503 504 /50x.html;
  13. location = /50x.html {
  14. root /usr/share/nginx/html;
  15. }
  16.  
  17. location ~ \.php$ {
  18. try_files $uri = 404;
  19. include fastcgi_params;
  20. fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. fastcgi_index index.php;
  22.  
  23. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement