[OT] User problem: Apache-Rewrite - Firewall - Problem
Fabio Tranchitella
kobold at kobold.it
Fri Mar 23 16:12:53 UTC 2007
Hi Andreas,
* 2007-03-23 16:00, Andreas Tille wrote:
> RewriteRule ^(.*)
> http://a.b.c.d:9673/VirtualHostBase/http/a.b.c.d:80/myfolder/VirtualHostRoot$1 [P,L]
>
> where a.b.c.d is the visible address of the machine from
> outisde the firewall, myfolder the folder of my Zope
> application I want to provide under a.b.c.d:80
> and as Debian users might are comfortable with 9673 the
> Zope port (default for Debian).
You should use 127.0.0.1 or localhost instead of a.b.c.d at the first
occurrence.
> I have a vague suspection that this might be very slightly connected
> with the fact that when I formerly followed the recommendation of
>
> http://plone.org/documentation/how-to/plone-with-apache-1.3
>
> to use "localhost" instead of the IP Adress of the server (or the FQDN)
> I blatantly failed because the localhost directive was interpreted by
> my browser that tried to access a local server (that did not existed).
The [P,L] options mean that the rewrite is a reverse proxy (P) and it is
the last one to be executed if it matches (L). So the rewrite won't be
communicated to the client. From what you wrote, I would think that you do
not have the proxy module loaded. Could you please confirm us that the
mod_proxy is enabled and loaded?
Also, add this snippet (tested with apache2, not sure if it works on apache
1.3) to your virtual host configuration:
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<IfModule mod_proxy.c>
ProxyVia On
# prevent the webserver from beeing used as proxy
<LocationMatch "^[^/]">
Deny from all
</LocationMatch>
</IfModule>
Cheers,
--
Fabio Tranchitella http://www.kobold.it
Free Software Developer and Consultant http://www.tranchitella.it
_____________________________________________________________________
1024D/7F961564, fpr 5465 6E69 E559 6466 BF3D 9F01 2BF8 EE2B 7F96 1564
More information about the pkg-zope-developers
mailing list