httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shaun Fryer <sh...@lweb.net>
Subject Re: [users@httpd] URL Rewrites - A certain twist, need help.
Date Tue, 19 Nov 2002 20:53:14 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? ...

	It is. See the "ServerName" in the last VirtualHost below.
Sorry if I'm confusing you. I could have been more specific in my
first post about this.

> <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>


---------------------------------------------------------------------
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