You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stevie O <st...@qrpff.net> on 2002/02/01 02:28:17 UTC
host-based mod_rewrite?
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
RE: host-based mod_rewrite?
Posted by Stevie O <st...@qrpff.net>.
At 11:59 AM 2/1/2002 -0500, Joshua Slive wrote:
>See:
>http://httpd.apache.org/docs/vhosts/mass.html
>
>Joshua.
Thank you! I *KNEW* I had seen that page before, I just couldn't remember
any specifics to search for :(
--
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
RE: host-based mod_rewrite?
Posted by jon schatz <jo...@divisionbyzero.com>.
On Fri, 2002-02-01 at 08:59, Joshua Slive wrote:
> See:
> http://httpd.apache.org/docs/vhosts/mass.html
also, this is almost trivial to do if you use mod_perl and the <perl>
directive.
-jon
--
jon@divisionbyzero.com || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus?: www.divisionbyzero.com/pgp.html
"You are in a twisty little maze of Sendmail rules, all confusing."
RE: host-based mod_rewrite?
Posted by Joshua Slive <jo...@slive.ca>.
> From: Stevie O [mailto:stevie@qrpff.net]
> At 06:30 PM 1/31/2002 -0800, you wrote:
> > > 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/
> >
> >why not use NameVirtualHost instead? or are these going to be dynamic?
>
> They're going to be somewhat dynamic (let x, y, z be account names, that
> should give you an idea of what i'm trying to do...)
>
See:
http://httpd.apache.org/docs/vhosts/mass.html
Joshua.
---------------------------------------------------------------------
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
Re: host-based mod_rewrite?
Posted by Stevie O <st...@qrpff.net>.
At 06:30 PM 1/31/2002 -0800, you wrote:
> > 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/
>
>why not use NameVirtualHost instead? or are these going to be dynamic?
They're going to be somewhat dynamic (let x, y, z be account names, that
should give you an idea of what i'm trying to do...)
--
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
Re: host-based mod_rewrite?
Posted by jon schatz <jo...@divisionbyzero.com>.
On Thu, 2002-01-31 at 17:28, Stevie O wrote:
> 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/
why not use NameVirtualHost instead? or are these going to be dynamic?
-jon
jon@divisionbyzero.com || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus?: www.divisionbyzero.com/pgp.html
"You are in a twisty little maze of Sendmail rules, all confusing."