Subdomains & VirtualDocumentRoot

Using a single web hosting account to host multiple sites

Subdomains & VirtualDocumentRoot

Postby ffgghh » Thu Dec 22, 2005 1:17 am

HI everybody,

I have dns configured - and all dns and sub-dns requests point to the same IP;
Im using Apache 2 with
/* */ VirtualDocumentRoot /http/%-2.0.%-1.0/%-3+

This allows me to generate domains like this:
/**/ ==> /http/ ==> /http/ ==> /http/
in every /http/ (dns) folder I have htaccess file whitch redirects not existing sub-dns requests to specific dns:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ [QSA,L]

Could anyone help me to create solution like this:

exists ==> /http/

(with modrewrite - or any other solution)
any request to non existing directory
go to /http/$1
but address in clients browser do not change

I mean

user requests
but sees page from

Please help ?

all sub-dns
not douindo not
Posts: 1
Joined: Thu Dec 22, 2005 1:06 am

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 5 guests