It's been several years since I did this (originally in apache 1.x)...
but when I upgraded to apache 2 it still worked.

Not sure where the documentation for this is...

In your httpd.conf file




$VirtualHost{"www.domain.com:80"} =3D {
'ServerAdmin' =3D> 'support@domain.com',
'DocumentRoot' =3D> '/home/web/public_html',
'ServerName' =3D> 'www.domain.com',
'ServerAlias' =3D> [('domain.com,"www.domain.com")],
'ScriptAlias' =3D> [
['/cgi-bin2/','/home/web/cgi-bin2/'],
['/cgi-bin/','/home/web/cgi-bin/']
],
'AliasMatch' =3D> [
['^/images/spin(.*?).gif','/home/somewhere/images/spin$1.gif'],
['/robots.txt$','/home/htmlmanager/public_html/robots.txt']
],
'Alias' =3D> [
['/forbidden.php3','/home/errors/forbidden.php3'],
['/missing.php3','/home/errors/missing.php3'],
],
'ErrorLog' =3D> '/var/log/httpd/web.net-error_log',
'CustomLog' =3D> '/var/log/httpd/web.net-access_log extracombined',
}





-----Original Message-----
From: Mason List [mailto:mason@madisonip.com]=20
Sent: Thursday, June 29, 2006 1:48 PM
To: modperl@perl.apache.org
Subject: mod_perl/httpd.conf/database

I'm looking for documentation on using mod_perl2 to configure apache.
I've read this page,
http://perl.apache.org/docs/2.0/api/...lSections.html
but I'm missing something because the virtualhost I configure doesn't
do anything. Before I start asking for specific help I'd like to find
the documents referenced on that page: eg/perl_sections.txt and
eg/httpd.conf.pl.

I think those would tell me what I need to know, but I can't find them.

Anyway, what I'm trying to do is simply configure virtual hosts with a
database. If someone can just provide an example I'd appreciate it...

Thanks!

Ryan