httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Laudanski <laud...@yahoo.com>
Subject Re: [users@httpd] URL Rewrites - A certain twist, need help.
Date Tue, 19 Nov 2002 20:46:37 GMT
Very nice indeed compared to the code in mod_rewrite. 
So, to get specific for "computercops.biz" itself, I'd
like to redirect that to "www.computercops.biz".  Does
that need to be stated too? ...

<virtualhost 66.221.179.99>
ServerName computercops.biz
ServerAlias computercops.biz computercops.info
www.computercops.info
Redirect / http://www.computercops.biz
</virtualhost>


--- Shaun Fryer <shaun@lweb.net> wrote:
> 	It's better to just use 3 VirtualHost containers.
> One for each
> of the two DocumentRoots, and one for the Redirects.
> As follows...
> 
> <virtualhost 66.221.179.99>
> ServerName www.computercops.biz
> DocumentRoot /www/computercops
> </virtualhost>
> 
> <virtualhost 66.221.179.99>
> ServerName scan.computercops.biz
> DocumentRoot /www/computercops/scan
> </virtualhost>
> 
> <virtualhost 66.221.179.99>
> ServerName computercops.biz
> ServerAlias computercops.info www.computercops.info
> Redirect / http://www.computercops.biz
> </virtualhost>
> 
> 	Of course using mod_rewrite is somewhat more
> educational, but
> I would think more convoluted than necessary.


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message