Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. server_name .default;
  5. root /root/default/public;
  6.  
  7. index index.html index.htm index.php;
  8.  
  9. charset utf-8;
  10.  
  11. location / {
  12. try_files $uri $uri/ /index.php?$query_string;
  13. }
  14.  
  15. location = /favicon.ico { access_log off; log_not_found off; }
  16. location = /robots.txt { access_log off; log_not_found off; }
  17.  
  18. access_log off;
  19. error_log /var/log/nginx/default-error.log error;
  20.  
  21. error_page 404 /index.php;
  22.  
  23. location ~ .php$ {
  24. fastcgi_split_path_info ^(.+.php)(/.+)$;
  25. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  26. fastcgi_index index.php;
  27. include fastcgi_params;
  28. }
  29.  
  30. location ~ /.ht {
  31. deny all;
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement