Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Windows XP, Apache 1.3 DocumentRoot and VirtualHost problems



Have a read of 
http://httpd.apache.org/docs/vhosts/
It should look a little something like: 

<VirtualHost your_ip>
ServerAdmin your_email
DocumentRoot /path/to/web/dir/for/this/user (c:/.../hosted/subdomain/)
ServerName subdomain.domain.com
ErrorLog logs/blah-host-error_log
TransferLog logs/blah-host-access_log
</VirtualHost> 



[EMAIL PROTECTED] (Luke Scott) wrote in message news:<[EMAIL PROTECTED]>...
> I got all my virtual hosting working, but what id like to do is this:
> 
> if i have subdomain.domain.com and folder "c:/.../hosted/blah" exists
> i want it to go to "c:/.../hosted/subdomain/"
> 
> if i have blah.domain.com and "c:/.../hosted/blah/" exists i want it
> to go to c:/.../hosted/blah/
> 
> if i have blahblah.domain.com and "c:/.../hosted/blahblah/" does NOT
> exist i want it to go to "c:/.../nothosted/"
> 
> So basicaly what ever apears in the subdomain part, i want it to go to
> the corisponding folder of the subdomain name.
> 
> and if possible id like to also do this:
> 
> if i have one.blah.domain.com and "C:/.../hosted/blah/" exists and
> "C:/.../hosted/blah/one/" exists then i want it to go to
> "C:/.../hosted/blah/one/"
> 
> if i have one.blah.domain.com and C:/.../hosted/blah/ exists and
> "C:/.../hosted/blah/one/" does NOT exist then i want it to go to
> "C:/.../hosted/blah/" or "C:/.../hosted/blah/nothosted/" (depends on
> which one i want).
> 
> if i have one.blah.domain.com and "C:/.../hosted/blah/" does NOT exist
> then i want it to go to "C:/.../nothosted/"
> 
> 
> 
> is there a way to do that?
> 
> (... = i didnt want to type out the whole path)



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.