Guest User

Untitled

a guest
Feb 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. server {
  2. charset utf-8;
  3. client_max_body_size 128M;
  4.  
  5. listen 80;
  6.  
  7. server_name urtest.info;
  8.  
  9. root /var/www/html/site/web;
  10. index index.php;
  11.  
  12. access_log /var/log/nginx/site.info_access.log combined;
  13. error_log /var/log/nginx/site.info_error.log;
  14.  
  15. location / {
  16. try_files $uri $uri/ /index.php?$args;
  17. }
  18.  
  19. location ~ .php$ {
  20. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  21. include fastcgi.conf;
  22. }
  23.  
  24. location ~ /.(ht|svn|git) {
  25. deny all;
  26. }
  27. }
Add Comment
Please, Sign In to add comment