DNS wildcards with mod_vhost_alias

This is a discussion on DNS wildcards with mod_vhost_alias within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, is it possible to configure mod_vhost_alias to translate: - www.somedomain.net => /home/somedomain.net/www - subdomain.somedomain.net =&...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-13-2005
Ladislav Durchánek
 
Posts: n/a
Default DNS wildcards with mod_vhost_alias

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


  #2 (permalink)  
Old 08-13-2005
HansH
 
Posts: n/a
Default Re: DNS wildcards with mod_vhost_alias

"Ladislav Durchánek" <durchanek@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


  #3 (permalink)  
Old 08-13-2005
Ladislav Durchánek
 
Posts: n/a
Default Re: DNS wildcards with mod_vhost_alias

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

Ladislav

"HansH" <hans@niet.op.het.net> píše v diskusním příspěvku
news:42fe4674$0$11078$e4fe514c@news.xs4all.nl...
> "Ladislav Durchánek" <durchanek@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
>
>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0