Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread Igor Cicimov
On 19/11/2014 12:39 PM, H Plato hpl...@gmail.com wrote: I’m having problems getting a reverse proxy to work as a subdirectory. Using the following configuration, Apache can full proxy an internal site: VirtualHost 192.168.0.50:80 ServerName www.domain.com DocumentRoot

[users@httpd] Load balancing with load detection on backend servers ?

2014-11-19 Thread Ulrich.Herbst
Hi all, I know the load_balancing-policies bybusyness, byrequests, bytraffic and heartbeat. We have a frontend apache, that acts as forwarding proxy to 8 backend servers. BUT: We want do route the next request to that backend server with least load. Is there any apache module, that can do this

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread H Plato
Just a cut’n’paste typo. On Nov 19, 2014, at 1:27 AM, Igor Cicimov icici...@gmail.com wrote: On 19/11/2014 12:39 PM, H Plato hpl...@gmail.com mailto:hpl...@gmail.com wrote: I’m having problems getting a reverse proxy to work as a subdirectory. Using the following configuration,

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread Eric Covener
On Tue, Nov 18, 2014 at 8:38 PM, H Plato hpl...@gmail.com wrote: then I get inconsistent results. Any link on the internal site that has root link (i.e.. href=“/docs” ) none of these are proxied to /a/docs. Any link with a relative link (i.e. href=“docs”) works. mod_proxy_html can fix your

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread H Plato
Thanks Eric, I've tried so many combinations of this with no success, both in and out of a location block. This should work according to the docs, but it doesn't (i'm writing this from memory so might have syntax wrong): location /a/ ProxyHTMLURLMap / /a/ ProxyHTMLURLMap /bin/ /a/bin/

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread Igor Cicimov
On 20/11/2014 1:04 AM, H Plato hpl...@gmail.com wrote: Thanks Eric, I've tried so many combinations of this with no success, both in and out of a location block. This should work according to the docs, but it doesn't (i'm writing this from memory so might have syntax wrong): location /a/

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread Otis DeWitt
Try adding: RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] Sent from my iPhone On Nov 18, 2014, at 8:38 PM, H Plato hpl...@gmail.com wrote: I’m having problems getting a reverse proxy to work as a subdirectory. Using the following configuration, Apache can full proxy an

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread H Plato
Thanks for the suggestion, but still no success. Again /a/ works, but any link in the proxied site that begins with “/“ does not. Nothing interesting in the logs, either: the error log has a few of these entries: [Wed Nov 19 19:51:58.309834 2014] [include:warn] [pid 22620] [client

Re: [users@httpd] Proxy problems when using subdirectory

2014-11-19 Thread H Plato
So I put this in a location /a/ block so that only those URLs get written. No success. Thanks for the suggestion though. On Nov 19, 2014, at 3:26 PM, Otis DeWitt otis.dew...@noaa.gov wrote: Try adding: RewriteRule ^(.*)$ http://www.domain.com/ http://www.domain2.com/$1 [R=301,L]