Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Apache virtual hosts
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Amailer




PostPosted: Tue Sep 21, 2004 4:09 pm   Post subject: Apache virtual hosts

Hello,
Could any one help me here?
Im trying to make it so that it will be easier to create subdomains with a php script that I can create later on, but first I need to know how to configure apache to create subdomains witht he names of the folders in X dir.

This is what I have currently.
code:

<VirtualHost 192.168.0.3>
UseCanonicalName off
VirtualDocumentRoot "C:/SUBDOMAINS/%1"
ServerName *.gfx-pro.ath.cx
ServerAlias www.*.gfx-pro.ath.cx
</VirtualHost>


Now the problem here is that, since my site its self is a subdomain... creating I cannot use like %2.0+%3.0 or w/e to get sub.domain (cus then it would simply be gfx-pro.ath)

Either way, so Im using now whole names or just the first name like um
(in a dir subdomains, i have
compsci, php and etc). It works like that (http://compsci.gfx-pro.ath.cx and http://php.gfx-pro.ath.cx).

My problem is that i cannot go to www.compsci.gfx-pro.ath.cx because then i need to create a dir called www.compsci or soemthing-- a21938210 anyone can help Rolling Eyes


thanks Rolling Eyes
Basically, how do i create proper subdomains? with out needing to restart my apache?
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: