Welcome to nginx on Debian! is the default holding page where is this stored on debian 8 jessie? thankyou xstationby xstation - Nginx Mailing List - English
I'm aware of the locations of index HTML on my server but the problem is that Nginx by default looks in this location in Debian 8 the thing is if I have something like: I create this link as root ln -s /home/echolot/echolot/results /var/www/echolot and this link as echolot user ln -sf echolot.html index.html Now the problem is when I go to mydomain/echolot, I get this intby xstation - Nginx Mailing List - English
thanks for your reply seems to have problems but just have to leave it for time being just comment out the lines refering to spider etc and hopes it restarts. many thanks for sugestions try to brush up on my knowledage baseby xstation - Nginx Mailing List - English
Here is full conf user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; #by xstation - Nginx Mailing List - English
If I delete the if! I get an error root@mail:~# nginx -t -c /etc/nginx/nginx.conf nginx: unknown directive "($http_user_agent" in /etc/nginx/nginx.conf:82 nginx: configuration file /etc/nginx/nginx.conf test failedby xstation - Nginx Mailing List - English
thanks for fast reply# here is what I get root@mail:~# nginx -t -c /etc/nginx/nginx.conf nginx: "if" directive is not allowed here in /etc/nginx/nginx.conf:82 nginx: configuration file /etc/nginx/nginx.conf test failed so 'if' should be deleted?by xstation - Nginx Mailing List - English
eneted this in the conf file under http SetEnvIfNoCase User-Agent "^Baiduspider" block_bot Order Allow,Deny Allow from All Deny from env=block_bot but on restart got a error message Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details. root@mail:~#by xstation - Nginx Mailing List - English