Amailer
|
Posted: 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
thanks
Basically, how do i create proper subdomains? with out needing to restart my apache? |
|
|