[users@httpd] Apache2 & ProxyPass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm new to this list, although I've been using Apache2 for several years.

I am using Apache2 as a proxy server for a number of services running on the
same server, using localhost with specific ports for the services to provide
their web pages.  One of these is zope.  I am testing the setup and want to
get it right before building the "serious" sites.

I am (and have been) using ProxyPass (along with the VirtualHostMonster in
zope) as it is the simplest of the 3 alternatives (Rewrite rules and PCGI
are the others).  I may change this at some time in the future, but it has
worked for now.

I have the following as the Apache2 site definition (under Linux Debian
3.1):

--------------------------------
#
## Definition file for testing instance of zope (port 3456)
#

#<Location /zope/>
<Location /zope>
    Order Allow,Deny
    Deny from 192.168.0.1 gateway gateway.NETWORK
    Allow from 192.168.0 127.0.0 NETWORK localhost

    SSLRequireSSL

    ProxyPass
http://localhost:3456/VirtualHostBase/https/SERVER.NETWORK:443/VirtualHostRo
ot/_vh_zope/

</Location>

## End of zope testing definition
--------------------------------

The problem I have is that with the first Location directive (/zope/) some
pages served by the instance don't work as zope doesn't add the trailing "/"
to the directory name it serves (i.e. it says "/zope" not "/zope/").

The second works (Location /zope) but seems to me to have a flaw.  If I have
sites fred-1 ... fred-9 they should work OK.  fred-10 wouldn't work as it
would be caught by the fred-1 location and redirected there, where it would
fail.

Is there a workaround for this?  I prefer the first Location statement (to
/zope/) but I can't find out how to get the "/zope" locations to work.  I've
tried several sets of rules for rewriting "/zope" to "/zope/", and they were
all either rejected as syntax errors, or just didn't work.  Help.

Thanks in advance,
David



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux