Hi all,

I am new of this mailing list.
I spent the last 3 days studying mod_perl and apache: I am trying to
configure dynamic virtual hosts on apache.
I need to query a db to get the real filesystem location of a virtual
server hosted.
(I query the db using the requested hostname)

I have configured correctly (I suppose) apache conf,
<VirtualHost *:80>
ServerName %0
VirtualDocumentRoot /srv/www/vhosts/%0/
HostnameLookups Off
UseCanonicalName Off
VirtualScriptAlias "/srv/www/vhosts/%0/cgi-bin/"
    <Directory ">
            Options None
            AllowOverride None
        Order allow,deny
            Allow from all
    </Directory>
</VirtualHost>

but now I need to change the path served by apache with the real path
where the requested page is hosted.
(for example /srv/www/vhosts/www.server1.com/index.html to
/mnt/user1/www/index.html)

Can someone give me some guidelines about the handlers to use in
mod_perl and some ideas about the way to do it?

Thank you a lot.

Valerio Bontempi

Reply via email to