Replace ProxyPass http://tswwma.lib.loc.gov/ http://192.168.0.2/ ProxyPassReverse http://tswwma.lib.loc.gov/ http://192.168.0.2/ with ProxyPass / http://192.168.0.2/ ProxyPassReverse / http://192.168.0.2/ -ascs -----Original Message----- From: Avraham Shapiro [mailto:asha@xxxxxxx] Sent: Wednesday, May 17, 2006 8:48 PM To: users@xxxxxxxxxxxxxxxx Subject: [users@httpd] ProxyPassReverse on Windows Importance: Low ** Low Priority ** Brian I read the applicable part of the doc and tried ProxyPassReverse with and without dns names and with and without the proxy section but I still can't get reverse proxy to work. When I fire up my browser I always get the local Apache server. Here's the relevant part of my httpd.conf: ============================== ServerName tswwma.lib.loc.gov UseCanonicalName On ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass http://tswwma.lib.loc.gov/ http://192.168.0.2/ ProxyPassReverse http://tswwma.lib.loc.gov/ http://192.168.0.2/ ================================================= There's nothing in my error log when I use a domain name and proxy section. as abpve. But when I omit them it actually seems to come close to executing the proxy. Then I get the following in error.log: [Tue May 16 15:30:15 2006] [notice] Apache/2.2.2 (Win32) configured -- resuming normal operations [Tue May 16 15:30:15 2006] [notice] Server built: Apr 29 2006 18:32:31 [Tue May 16 15:30:15 2006] [notice] Parent: Created child process 588 [Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(481): Parent: Sent the scoreboard to the child [Tue May 16 15:30:15 2006] [notice] Child 588: Child process is running [Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(402): Child 588: Retrieved our sc oreboard from the parent. [Tue May 16 15:30:15 2006] [info] Parent: Duplicating socket 208 and sending it to child process 588 [Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(599): Parent: Sent 1 listeners to child 588 [Tue May 16 15:30:15 2006] [debug] mpm_winnt.c(558): Child 588: retrieved 1 list eners from parent [Tue May 16 15:30:15 2006] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 0 in child 588 for worker http://192.168.0.2/ [Tue May 16 15:30:15 2006] [debug] proxy_util.c(1708): proxy: initialized worker 0 in child 588 for (192.168.0.2) min=0 max=250 smax=250 [Tue May 16 15:30:15 2006] [debug] proxy_util.c(1625): proxy: grabbed scoreboard slot 1 in child 588 for worker proxy:reverse [Tue May 16 15:30:15 2006] [debug] proxy_util.c(1708): proxy: initialized worker 1 in child 588 for (*) min=0 max=250 smax=250 [Tue May 16 15:30:15 2006] [notice] Child 588: Acquired the start mutex. [Tue May 16 15:30:15 2006] [notice] Child 588: Starting 250 worker threads. [Tue May 16 15:30:15 2006] [notice] Child 588: Starting thread to listen on port 80. It seems to be attempting the reverse proxy but fails. I noticed someone else in the mail list using VirtualHost to do ProxyPassReverse. But I didn't see the doc instructing me to do it that way. Also, I don't remember the scoreboard, which is prominent in the log, being discussed in the docs. BTW if I didn't already mention it, this is 2.2. Any ideas? Thanks in advance! Avi >>> "Brian Rectanus" <brectanu@xxxxxxxxx> 05/16/06 11:31 AM >>> On 5/16/06, Avraham Shapiro <asha@xxxxxxx> wrote: > ** Low Priority ** > > I loaded mod_proxy, and it no longer complains about the ProxyPassReverse line. > But when I open http://localhost in my browser the reverse proxy doesn't happen. > Instead it says "can't find server". I can't find any more information in my log file. > > The line in my httpd.conf file is: ProxyPassReverse / http://192.168.0.2/ > > Avi > ProxyPassReverse does nothing but rewrite headers going back to the client. You want ProxyPass to actually do the reverse proxying. Re-read the docs and basic examples: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#forwardreverse -B --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx