in reply to VHosting large number of domains(50+), mod-perl
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: VHosting large number of domains(50+), mod-perl
by BUU (Prior) on Oct 05, 2003 at 17:35 UTC | |
|
Re: Re: VHosting large number of domains(50+), mod-perl
by Juerd (Abbot) on Oct 06, 2003 at 18:33 UTC | |
by BUU (Prior) on Oct 06, 2003 at 19:17 UTC | |
by Juerd (Abbot) on Oct 06, 2003 at 19:24 UTC |