I have a question about nginx.conf. In my old server, apache was used as webserver. Later I change it to nginx and the user in nginx.conf is "user apache apache" And ther server runs smoothly. Now, I set up a brand new server and I direcly install nginx to the server. In nginx.conf, the user is set to "user nginx" It will return 403 when I access the websites onby jerleung - How to...
Thanks Maxim. I have made one mistake. I read some tutorial on the web and I have put root under location / Really thanks for your reply.by jerleung - Nginx Mailing List - English
I was trying to prevent hotlinking for http://mydomain.com/photos/ then I use the following in nginx.conf location ~ /photos/ { valid_referers none blocked server_names; if ($invalid_referer) { return 403; } } I found that it will block hotlinking from other sitesby jerleung - Nginx Mailing List - English