RE: [users@httpd] Proxy problems when using subdirectory (UNCLASSIFIED)

2014-11-20 Thread Folino, Nick E CTR USARMY HRC (US)
:80/a/ Nick -Original Message- From: H Plato [mailto:hpl...@gmail.com] Sent: Wednesday, November 19, 2014 10:01 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Proxy problems when using subdirectory So I put this in a block so that only those URLs get written. No success

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

2014-11-19 Thread H Plato
So I put this in 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 wrote: > > Try adding: > > RewriteRule ^(.*)$ http://www.domain.com/ $1 > [R=301,L] > > Sent from my iPhone >

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 192.168.3.18

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

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

2014-11-19 Thread Igor Cicimov
On 20/11/2014 1:04 AM, "H Plato" 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): > > > ProxyHTMLURLMap / /a

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): ProxyHTMLURLMap / /a/ ProxyHTMLURLMap /bin/ /a/bin/ Sent from my

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 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 links. --

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 wrote: > > > On 19/11/2014 12:39 PM, "H Plato" > wrote: > > > > I’m having problems getting a reverse proxy to work as a subdirectory. > > Using the following configuration, Apache can full proxy an i

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

2014-11-19 Thread Igor Cicimov
On 19/11/2014 12:39 PM, "H Plato" 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: > > > ServerName www.domain.com > DocumentRoot /data/www/www > ErrorLog /var/log/a

[users@httpd] Proxy problems when using subdirectory

2014-11-18 Thread H Plato
I’m having problems getting a reverse proxy to work as a subdirectory. Using the following configuration, Apache can full proxy an internal site: ServerName www.domain.com DocumentRoot /data/www/www ErrorLog /var/log/apache2/www_error_log TransferLog /var/log/apac