I can not open any link except http://example.com/readme.txt with following
server block.
Any tips?

How did you come up with such configuration in first place?

Second what exact response you get when opening something else (besides the readme.txt) and what does the access/error log contain for particular request - it should indicate the reason you can't open the particular url - depending on the response/http status it might be different thing (you have quite many location/deny blocks also 3rd party modules which could block the requests, the php backend might not be correctly configured (or just down) etc).



If unsure what the resulting config actually does I would start with a more simple version (bare server{} just with a php backend definition).

I mean a lot of your current configuration doesn't make sense or is redundant.

Just for example you have:

if ($request_method = POST) {
       set $skip_cache 1;
   }

and then:
fastcgi_cache_bypass $skip_cache;
fastcgi_cache_methods GET HEAD;

Where fastcgi_cache_methods default value allready is only GET and HEAD therefore the particular if() is not necessary nor the cache_methods setting itself.

rr
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to