--LyciRD1jyfeSSjG0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
> by the way,i need create many virtual host,so i must do dynamic
> creating like above.
There are many ways of specifying virtual hosts. A couple of alternatives
are to use mod_macro, or a mod_perl block to loop over your list of
domains.
I have been known to use this in the past, even though it's clunky...
--- snippet from httpd.conf
foreach (qw/host1.com host2.com host3.com host4.com host5.com/) {
$PerlConfig .=3D <<EOF;
<VirtualHost 123.123.123.123:80>
ServerName $_
ServerAlias www.$_
DocumentRoot /wherever/it/is/$_/
CustomLog /var/log/apache/multihosts_access_log vcommon
</VirtualHost>
EOF
}
--- end snippet
By adding a script_alias here you can get what you need.
Dave
--=20
- Dave Baker : [EMAIL PROTECTED] : [EMAIL PROTECTED] : http://dsb3.com/
GnuPG: 1024D/D7BCA55D / 09CD D148 57DE 711E 6708 B772 0DD4 51D5 D7BC A55D
--LyciRD1jyfeSSjG0
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7I3zyDdRR1de8pV0RAoE+AKC6o7v8KA6SEX2Ijh85YXVYQjZHPACgmUp/
zpTm/daGWz75UQ97jmoab1I=
=jJCo
-----END PGP SIGNATURE-----
--LyciRD1jyfeSSjG0--