httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "The_RadiX" <the_ra...@the-spectrum.org>
Subject Re: [Apache] Catchall Subdomain Method?..
Date Sun, 07 Jul 2002 01:41:54 GMT
Yeah I did that sometime ago when I first got the domain..

Remember I am currently using subdomains just the method I am using will
soon get very tedious if I am to have hundreds of entries ;)


Ok.. Well I used you little code extract you got from that page..

RewriteCond   %{HTTP_HOST}                 ^www\.[^.]+\.host\.com$
RewriteRule   ^(.+)                        %{HTTP_HOST}$1          [C]
RewriteRule   ^www\.([^.]+)\.host\.com(.*) /home/$1$2


I also had RewriteBase / at the top.. is that ok? or does it break the whole
idea??

I don't know because it doesn't seem to work..


It seems to "recurse" on itself and give lovely errors like..
Forbidden.. Cannot access
/subs/primesubs/primesubs/primesubs/primesubs/primesubs/prime

when it's only supposed to make it goto /subs/prime$2

I don't know.. somehow it must reinject the pattern ($2) back in there as $1
or something? very weird..


Could it be the base rewriting? I doubt it.. but maybe I am not thinking
straight ;)



Thanks again..
:::::::::::::::::::::::::::::::::::::::::::
:  Julien Bonastre [The-Spectrum.org CEO]
:  A.K.A. The_RadiX
:  the_radix@the-spectrum.org
:  ABN: 64 235 749 494
:  QUT Student #: 04475739
:::::::::::::::::::::::::::::::::::::::::::
----- Original Message -----
From: <JawjB@aol.com>
To: <users@httpd.apache.org>
Sent: Sunday, July 07, 2002 12:51 AM
Subject: Re: [Apache] Catchall Subdomain Method?..


> In a message dated 06/07/02 14:58:12 GMT Daylight Time,
> the_radix@the-spectrum.org writes:
>
> << Thanks a million..
> <
> < Will play with it now.. seems to look good though from here..
> <
>  >>
>
> Remember to update your DNS to resolve all subdomains
>
> *    IN CNAME yourdomain.com
>
>  :::::::::::::::::::::::::::::::::::::::::::
>  :  Julien Bonastre [The-Spectrum.org CEO]
>  :  A.K.A. The_RadiX
>  :  the_radix@the-spectrum.org
>  :  ABN: 64 235 749 494
>  :  QUT Student #: 04475739
>  :::::::::::::::::::::::::::::::::::::::::::
>  ----- Original Message -----
>  From: <JawjB@aol.com>
>  To: <users@httpd.apache.org>
>  Sent: Saturday, July 06, 2002 1:28 AM
>  Subject: Re: [Apache] Catchall Subdomain Method?..
>
>
>  > RewriteCond   %{HTTP_HOST}                 ^www\.[^.]+\.host\.com$
>  > RewriteRule   ^(.+)                        %{HTTP_HOST}$1          [C]
>  > RewriteRule   ^www\.([^.]+)\.host\.com(.*) /home/$1$2
>  >
>  > http://httpd.apache.org/docs/misc/rewriteguide.html
>  >
>  > See Virtual User Hosts
>  >
>  > In a m >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message