Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name tur4in.com www.tur4in.com;
- root /home/tur4in/public_html;
- index index.html index.htm index.php;
- access_log /var/log/nginx/tur4in.com_access_log;
- error_log /var/log/nginx/tur4in.com_error_log;
- try_files $uri $uri/ /index.php;
- location / {
- try_files $uri $uri/ /index.php;
- root /home/tur4in/public_html;
- }
- location ~ \.php$ {
- #include /etc/nginx/fastcgi.conf;
- include /etc/nginx/fastcgi_params;
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php-fpm/tur4in.com.sock;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location ~ /\.ht {
- deny all;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement