Re: Proxy pass and URL rewrite with upstream

2017-12-21 Thread Zhang Chao
Hello! > With this configuration, only works the URL with a trailing slash > "http://systems.ltda.local/phpmyadmin/"; and not > "http://systems.ltda.local/phpmyadmin”. What do you mean of it doesn’t work with the URL without the trailing slash? Does the backend Apache server just returns 404? Th

Re: Proxy pass and URL rewrite with upstream

2017-12-21 Thread Aziz Rozyev
Hi create 4 separate upstreams for each of these apaches, create 4 locations, within each location block proxy_pass to appropriate upstream. avoid using sub_filters, they are mostly forrewriting bodies of html documents. http { # for phpadmin upstream phpadminup { server phpadmin.ltda.loca

Proxy pass and URL rewrite with upstream

2017-12-21 Thread M. Rodrigo Monteiro
Hi! I'm new to nginx and I need you help do setup the way I need. The server is nginx-1.12.2-1.el7.x86_64 (rpm) on CentOS 7.2 64. My scenario is: all my systems are http://systems.ltda.local/NAME (systems.ltda.local is nginx as reverse proxy) The nginx must rewrite (or proxy, or whatever) to 4 Ap