Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

DNS wildcards with mod_vhost_alias

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  RicoHosting $1.99-$3.99 a month  
Author Message
Ladislav Durchánek

External


Since: Aug 13, 2005
Posts: 2



(Msg. 1) Posted: Sat Aug 13, 2005 12:55 pm
Post subject: DNS wildcards with mod_vhost_alias
Archived from groups: alt>apache>configuration (more info?)

Hi, is it possible to configure mod_vhost_alias to translate:
- www.somedomain.net => /home/somedomain.net/www
- subdomain.somedomain.net => /home/somedomain.net/somedomain
- somedemain.net => /home/somedomain.net/www
?
I get to:

VirtualDocumentRoot /home/%-2.0.%-1/%-3+

but if no third part from last is present, Apache replaces it with
underscope. I need to tell Apache to replace it with "www". Or should i use
mod_rewrite instead?

Thanks for an advice

 >> Stay informed about: DNS wildcards with mod_vhost_alias 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Sat Aug 13, 2005 3:55 pm
Post subject: Re: DNS wildcards with mod_vhost_alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Ladislav Durchánek" <durchanek RemoveThis @gmail.com> schreef in bericht
news:ddl3qi$o3r$1@news.vol.cz...
> Hi, is it possible to configure mod_vhost_alias to translate:
> - www.somedomain.net => /home/somedomain.net/www
> - subdomain.somedomain.net => /home/somedomain.net/somedomain
Traling somedomain ??
Assuming somedomain

> - somedemain.net => /home/somedomain.net/www
> ?
> I get to:
>
> VirtualDocumentRoot /home/%-2.0.%-1/%-3+
>
> but if no third part from last is present, Apache replaces it with
> underscope. I need to tell Apache to replace it with "www". Or should i
use
> mod_rewrite instead?
>
How about at
/home/somedomain.net
run
ln -s www _
and make the _ a symbolic link to www

Do have your scripts eat and bake cookies for .somedomain.net

IIRC this way of setting documentroot is not correctly replicate to the
corresponding enviroment parameter.


HansH

 >> Stay informed about: DNS wildcards with mod_vhost_alias 
Back to top
Login to vote
Ladislav Durchánek

External


Since: Aug 13, 2005
Posts: 2



(Msg. 3) Posted: Sat Aug 13, 2005 5:55 pm
Post subject: Re: DNS wildcards with mod_vhost_alias [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for tip, but i have to do that without symlink.

Ladislav

"HansH" <hans DeleteThis @niet.op.het.net> píše v diskusním příspěvku
news:42fe4674$0$11078$e4fe514c@news.xs4all.nl...
> "Ladislav Durchánek" <durchanek DeleteThis @gmail.com> schreef in bericht
> news:ddl3qi$o3r$1@news.vol.cz...
>> Hi, is it possible to configure mod_vhost_alias to translate:
>> - www.somedomain.net => /home/somedomain.net/www
>> - subdomain.somedomain.net => /home/somedomain.net/somedomain
> Traling somedomain ??
> Assuming somedomain
>
>> - somedemain.net => /home/somedomain.net/www
>> ?
>> I get to:
>>
>> VirtualDocumentRoot /home/%-2.0.%-1/%-3+
>>
>> but if no third part from last is present, Apache replaces it with
>> underscope. I need to tell Apache to replace it with "www". Or should i
> use
>> mod_rewrite instead?
>>
> How about at
> /home/somedomain.net
> run
> ln -s www _
> and make the _ a symbolic link to www
>
> Do have your scripts eat and bake cookies for .somedomain.net
>
> IIRC this way of setting documentroot is not correctly replicate to the
> corresponding enviroment parameter.
>
>
> HansH
>
>
 >> Stay informed about: DNS wildcards with mod_vhost_alias 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]