Rewrite/redirect issue

Francis Daly francis at daoine.org
Fri May 7 13:02:05 UTC 2021


On Thu, May 06, 2021 at 07:15:55PM +0000, Eric Speake wrote:

Hi there,

> Looking at the logs I see this:
> 
> 192.168.250.30 - - [06/May/2021:13:27:27 -0500] "GET /summersummit HTTP/1.1" 301 185 "-"
> 
> While seeing the 301 it's not redirecting anywhere.

What response do you get from something like

  curl -ki https://mydomain.com/summersummit

? If nginx is sending the correct HTTP 301 Location:, then nginx is
configured correctly.

If not, then it is not.

Using "curl", or something like it, avoids any caching or cleverness
that a "full" browser might be doing, and is much easier for testing.

Cheers,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list