On Mon, 10 Apr 2000, Eric Cholet wrote:

> The front-end light server, serving static requests and proxying
> dynamic requests to a back-end modperl server, is well documented,
> except in the case of virtual hosts. How do you do it?

On the front end:

<VirtualHost www.customer.com>
        DocumentRoot /vhosts/customer
        ProxyPass        /perl/ http://localhost/customer/perl/
        ProxyPassReverse /perl/ http://localhost/customer/perl/
</VirtualHost>

On the back end:

DocumentRoot /vhosts
BindAddress 127.0.0.1

<Directory /vhosts/*/perl>
        SetHandler perl-script
        PerlHandler Apache::Registry # Or whatever
        PerlSendHeader  On
        Options         +ExecCGI
</Directory>

- Matt

Reply via email to