Proxy_pass url with a #

Francis Daly francis at
Mon Oct 8 14:07:41 UTC 2018

On Sun, Oct 07, 2018 at 06:54:54AM -0700, Brian Whalen wrote:

Hi there,

> In summary I am trying to reverse proxy a group of windows web servers,
> where there is a # in the url. I have it mostly working except this.

I'm afraid I still don't fully understand what specific problem you
are reporting.

However, from later in your mail, it appears that the # may not be
fully relevant.

> I dont think the hash is the whole problem though, since if I try
> to load some other page after the successful auth it also fails.

Can you show one specific request that you make, and show the response
that you get, and indicate how it is different from the response that you
want? That might make it possible for someone else to repeat the issue,
which might make it easier to identify the solution.

> I know also that If I just do a straight proxy_pass to the url without the
> ldap auth and then type in nginxserver/path#/with/pound that works.

Can you describe that in terms of http requests, perhaps made using the
"curl" command line client?

If you look in the access logs of nginx and the upstream for these
requests, do you see the # character appearing at all?

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list