httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevie O <ste...@qrpff.net>
Subject host-based mod_rewrite?
Date Fri, 01 Feb 2002 01:28:17 GMT
I have a domain, say, domain.com.

It is housed in

/www/domain.com/

I would like addresses such as the following:
x.domain.com
y.domain.com
z.domain.com

to refer to

/www/domain.com/x/
/www/domain.com/y/
/www/domain.com/z/

I know how to use mod_rewrite to change the effective root dir of a URL, 
but is it possible to do this based off of the hostname?


--
Stevie-O

Real programmers use COPY CON PROGRAM.EXE


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message