Guest User

Untitled

a guest
Jan 23rd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5. root /var/www/html;
  6.  
  7. # Add index.php to the list if you are using PHP
  8. index index.php index.html index.htm index.nginx-debian.html;
  9.  
  10. server_name ;
  11.  
  12. location ~ .php$ {
  13. include snippets/fastcgi-php.conf;
  14. fastcgi_pass unix:/var/run/php5-fpm.sock;
  15. try_files $uri =404;
  16. fastcgi_split_path_info ^(.+.php)(/.+)$;
  17. include /etc/nginx/fastcgi_params;
  18. fastcgi_index index.php;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. }
  21.  
  22. }
Add Comment
Please, Sign In to add comment