Welcome! Log In Create A New Profile

Advanced

Re: Missing period character in URL

Maxim Dounin
March 01, 2019 08:28AM
Hello!

On Fri, Mar 01, 2019 at 06:16:19AM -0500, kagemandandersen wrote:

> I have a service that sends request through our Nginx gateway proxy. The URL
> contains two period characters (e.g.
> https://localhost:1234/servicename/some.name./serviceendpoint). When the URL
> is passed through the Nginx gateway, the URL is missing the last period
> character in the URL, resulting in a failure.
>
> Any idea what could cause this behaviour? A URL normaliser perhaps?
>
> I am using Nginx version 1.15.7 for Windows.

On Windows, trailing dot is not significant and is ignored by
filesystem accesses, so it is normalized away. See here for more
details:

http://hg.nginx.org/nginx/rev/5d86ab8f2340
http://mailman.nginx.org/pipermail/nginx-announce/2012/000086.html

If you want nginx to preserve URI of a request exactly as it was
provided by the client - make sure to use proxy_pass without an
URI compontent, that is:

location / {
proxy_pass http://backend;
}

Note no trailing "/" after "backend".

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Missing period character in URL

kagemandandersen March 01, 2019 06:16AM

Re: Missing period character in URL

kagemandandersen March 01, 2019 07:44AM

Re: Missing period character in URL

Maxim Dounin March 01, 2019 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
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