Welcome! Log In Create A New Profile

Advanced

Re: Odd behavior

Francis Daly
October 10, 2019 04:34AM
On Wed, Oct 09, 2019 at 07:53:44PM -0400, Ken Wright wrote:
> On 10/9/19 4:27 AM, Francis Daly wrote:
> > On Wed, Oct 09, 2019 at 01:52:11AM -0400, Ken Wright wrote:

Hi there,

> > If you can show a (small) config that someone else can use to see the
> > issue, perhaps it will be clear what needs to be changed.
>
> Okay, here's the default config:

> server {
>     if ($host = www.koalatyworks.com) {
>         return 301 https://$host$request_uri;
>     } # managed by Certbot
>
>     if ($host = koalatyworks.com) {
>         return 301 https://$host$request_uri;
>     } # managed by Certbot

[snip]

>     root /var/www/html;
>     return 301 https://$host$request_uri;

When using this config, is there one request that you can make that
responds with something other than a http 301?

I think that you said you get a 404, and maybe two different 200s.

So I'm going to say that, using the config that you provide, I am unable
to replicate the issue that you report.

Perhaps I'm using a different version of nginx. Or perhaps the config
that was in place when you saw the issue, is not the config that is here.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Odd behavior

Ken Wright October 09, 2019 01:54AM

Re: Odd behavior

pbooth October 09, 2019 03:40AM

Re: Odd behavior

Francis Daly October 09, 2019 04:28AM

Re: Odd behavior

Ken Wright October 09, 2019 07:54PM

Re: Odd behavior

Francis Daly October 10, 2019 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready