For example:
<VirtualHost 1.2.3.4> DocumentRoot /path/to/a/single/directory ServerName www.mainserver.name ServerAlias www.foo.com ServerAlias www.bar.com # etc. etc. about 50 times # all ServerAliases could be a on a single line, # but I prefer seperate lines for readability # only do the following if you want only the main URL to appear in the + URL-bar RewriteEngine On RewriteCond %{HTTP_HOST} !^www.mainserver.name$ [ +NC] RewriteRule ^.*$ http://www.mainserver.name/ [ +R,L] # other stuff you need for these domains </VirtualHost>
Liz
In reply to Re: VHosting large number of domains(50+), mod-perl
by liz
in thread VHosting large number of domains(50+), mod-perl
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |