Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name tur4in.com www.tur4in.com;
  4. root /home/tur4in/public_html;
  5. index index.html index.htm index.php;
  6. access_log /var/log/nginx/tur4in.com_access_log;
  7. error_log /var/log/nginx/tur4in.com_error_log;
  8. try_files $uri $uri/ /index.php;
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php;
  12. root /home/tur4in/public_html;
  13. }
  14.  
  15. location ~ \.php$ {
  16. #include /etc/nginx/fastcgi.conf;
  17. include /etc/nginx/fastcgi_params;
  18. try_files $uri =404;
  19.  
  20. fastcgi_pass unix:/var/run/php-fpm/tur4in.com.sock;
  21. }
  22. location = /favicon.ico {
  23. log_not_found off;
  24. access_log off;
  25. }
  26. location ~ /\.ht {
  27. deny all;
  28. }
  29. location = /robots.txt {
  30. allow all;
  31. log_not_found off;
  32. access_log off;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement