[users@httpd] Re: Help on Rewriting Rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear sir,
          I had gone through the document about mass defined
virtualhosts, i had enabled the module mod_vhost_alias.

I want the Webserver to fetch the pages for each request from an
directory structure as /home/domains/"domainname"/Webdir

if the request is for either http://www.enmail.com or
http://enmail.com , the web server should fetch the pages from
/home/domains/enmail.com/Webdir.

if the request is for either http://www.enmail.in or http://enmail.in
, the web server should fetch the pages from
/home/domains/enmail.in/Webdir.

i also have another type of request to webserver i.e., mail.enmail.com
, in this case the webserver should fetch the pages from
/home/domains/enmail.com/Webdir/login

UseCanonicalName Off
VirtualDocumentRoot /home/domains/%2+/Webdir       --- This would
fetch www.enmail.com/www.enmail.in

VirtualDocumentRoot /home/domains/%1+/Webdir       --- This would
fetch enmail.com/enmail.in

How can i handly three type of request 
1. http://www.enmail.com
2. http://enmail.com
3. http://mail.enmail.com

Kindly assist to achieve this.

Thanks in Advance

S>Rajkumar

On 7/7/05, Davide Bianchi <davide@xxxxxxxxxxxxxx> wrote:
> Rajkumar s wrote:
> > It's a very tedious to set VirtualHost for each and every domain
> > because there is about 200 domains, so instead can i have a rule to 
> > fetch the pages from particulardomain/webdir/
> 
> Sure you can. Read the documentation on apache's web site about
> mass-defined virtual host.
> 
> Davide
> 
> 
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux