Proxy pass and URL rewrite with upstream

Zhang Chao zchao1995 at
Fri Dec 22 01:56:42 UTC 2017


> With this configuration, only works the URL with a trailing slash
> "" and not
> "”.

What do you mean of it doesn’t work with the URL without the trailing
Does the backend Apache server just returns 404?

The URL path that your nginx passes to the backend will be:

/ if types

// if types
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list