...
ServerName www.pionyexchange.com
ServerAlias pexchange.com www.pexchange.com ftp.pexchange.com 
whatever.pexchange.com
...

good luck

Christofer,

On Sun, 26 Mar 2000, Chad A. Adlawan wrote:

> Hello Everyone,
> 
>     Im virtual hosting this domain called www.pexchange.com (name based) and 
> I want apache to listen not only to www.pexchange.com but also pexchange.com, 
> even ftp.pexchange.com and mail.pexchange.com (since they all reside in one 
> IP add anyway).
>     Question, do I have to place a complete set of <VirtualHost>, 
> </VirtualHost> for every domain I want it to listen to ? (but point to only 
> one log file) or is there a shorter way around it ?
> 
>     Heres its config :
> 
> TIA,
> Chad
> 
> PS, ow BTW, "Redirect / http://www.pexchange.com"; will work only if u access 
> /* but not /somedir/*.  and if I use "Redirect * http://www.pexchange.com";, 
> the access wont be logged.   Help please :-)
> 
> 
> ----- <snip>  from my httpd.conf -----
> 
> <VirtualHost www.pexchange.com>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /home/pexchange.com/htdocs
> ServerName www.pinoyexchange.com
> 
> <Directory /home/pexchange.com/cgi-bin/
> AllowOverride None
> Options ExecCGI FollowSymLinks
> </Directory>
> 
> ScriptAlias /cgi-bin/ /home/pexchange.com/cgi-bin/
> 
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> 
> DirectoryIndex index.shtml index.html
> 
> ErrorLog /home/pexchange.com/weblogs/error.log
> CustomLog /home/pexchange.com/weblogs/access.log bonelessbangus
> </VirtualHost>
> 
> -------- </snip> --------
> 
> 
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

Reply via email to