Re: Subdomains

Juergen Daubert <[email protected]> Mon, 10 Sep 2007 12:53:17 +0200
Newsgroups gmane.network.mathopd
Message-ID <[email protected]>
On Mon, Sep 10, 2007 at 10:59:42AM +0200, [email protected] wrote:
> Hello there,

Hi,

> I need to allow access to a few Web pages stored in the "testfiles" 
> subdirectory using the URL "http://test/mysite.com".

I guess you mean http://test.mysite.com ? Be aware that the host name
must be resolvable via DNS, so you need at a minimum a CNAME record
for test.mysite.com pointing to mysite.com

> Actually only the main "http://mysite.com" URL is configured and used.
> 
> Please what are the recommended settings for the configuration file to 
> use the URL with the "test" subdomain too and to access the "testfiles" 
> subdirectory automatically in this case ?

Use the virtual hosts feature of Mathopd:

 Virtual {
     NoHost
     Host mysite.com
     ..
 }
 Virtual {
     Host test.mysite.com
     ...
 }   

HTH
Juergen


-- 
Juergen Daubert  |  mailto:[email protected]  
Korb, Germany    |  http://jue.li/crux