You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "J. Nyhuis" <ca...@u.washington.edu> on 2002/12/12 21:34:50 UTC

[users@httpd] mod_proxy

	Greetings,
	I've been wrestling with mod_proxy on Apache 2 for several days,
and I'm doing something wrong.  I think the problem is in my httpd.conf.
I would appreciate any advice folks would be willing to give me.

The Goal:
	I need a webserver (inside of a draconian firewall) that will
resolve the requests it recieves by contacting an existing squid proxy
server which serves the LAN (same) side of the firewall.  I don't want the
webserver to be caching things, just resolve all requests through the
squid proxy.  For troubleshooting purposes, I've changed everything to IP
to rule out DNS issues.  The webserver's IP is 192.168.10.253.

In my httpd.conf: (which does pass the config test)

#
#
LoadModule proxy_module modules/mod_proxy.so

<IfModule mod_proxy.so>
ProxyRequests On

#Added by John N. Forward all requests to main squid proxy server on port 8080
ProxyRemote * http://192.168.10.254:8080

#Added by John N. host webserver outside of the firewall "10.10.11.21" locally
ProxyPass /test http://10.10.11.21/tii/
ProxyPassReverse /test http://10.10.11.21/tii/

<Proxy *>
    Order allow,deny
    Allow from all
</Proxy>

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via:
headers)
# Set to one of: Off | On | Full | Block
ProxyVia On

# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#CacheRoot "C:/Program Files/Apache Group/Apache2/proxy"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1

#Added by John N. Don't cache, just retrieve
NoCache *

</IfModule>
#
#

The behavior I am witnessing:

If I configure a browser (also on the webserver) to use the squid proxy
directly, http://10.10.11.21/tii/xql.htm displays just fine.  Conclusion:
The squid proxy can proxy 10.10.11.21/tii/xql.htm just fine.

If I configure the browser to not use any proxy and point it at:
http://127.0.0.1/test/xql.htm, which should be the local proxied version
of "lorien", I get a get a "URL /test/xql.htm not found" message.

Pointing the browser at localhost gets the Apache test page, so I know the
webserver is working.


What am I missing?
Any recommended tests to shed light on the problem?

Thanks,
John Nyhuis
Cell Systems Initiative
University of Washington
cabal@u.washington.edu




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org