Welcome! Log In Create A New Profile

Advanced

Re: What cause the error for this http/https wordpress configuration file?

Reinis Rozitis
August 27, 2015 02:56PM
> 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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

What cause the error for this http/https wordpress configuration file?

log August 27, 2015 12:19PM

Re: What cause the error for this http/https wordpress configuration file?

Reinis Rozitis August 27, 2015 02:56PM

Re: What cause the error for this http/https wordpress configuration file?

log August 27, 2015 07:56PM

Re: What cause the error for this http/https wordpress configuration file?

Reinis Rozitis August 27, 2015 08:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready