OK.. i see you are using XAMPP 1.5.2 for Windows
at first, i understand with "subdomain" this call -->
sub1.stoll.nu
sub2.stoll.nu
second, make of all work a backup, if anything dont work you can in seconds bring back you server to the normal level !
excuse me, i dont know the exact path of you server, you need to change it for yourself.
Edit the
httpd.conf, find the line
#Include /conf/extra/httpd-vhost.conf
delete the " # " , saving.
now edit the
\xampp\apache\conf\extra\httpd-vhost.conf
COPY/PASTE from here all lines into the end of the httpd-vhost.conf
- Code: Select all
NameVirtualHost *:80
#This is the first VHOST for you content stoll.nu
#change the path to your pathes of content
<VirtualHost *:80>
ServerName stoll.nu
ServerAlias www.stoll.nu
ServerAdmin webmaster@stoll.nu
DocumentRoot c:/xampp/htdocs/stollnu/
<Directory "c:/xampp/htdocs/stollnu">
AllowOverride All
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#This is the first SUBdomain with his own Path for content
<VirtualHost *:80>
ServerName sub1.stoll.nu
ServerAlias www.sub1.stoll.nu
ServerAdmin webmaster@stoll.nu
DocumentRoot c:/xampp/htdocs/sub1stollnu/
<Directory "c:/xampp/htdocs/sub1stollnu">
AllowOverride All
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#This ist the next SUBdomain with own Path of content
<VirtualHost *:80>
ServerName sub2.stoll.nu
ServerAlias www.sub2.stoll.nu
ServerAdmin webmaster@stoll.nu
DocumentRoot c:/xampp/htdocs/sub2stollnu/
<Directory "c:/xampp/htdocs/sub2stollnu">
AllowOverride All
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Usefull Thinks:
If you have LOGfile enable, COPY the logfile generation from you httpd.conf and PASTE it in your VHOST (below the DocumentRoot xxxx)
Seperate for any VHOST (SubDomain) with his own logfilename or logfilepath or both.
After editing the httpd-vhost.conf and the httpd.conf you must restart the XAMPP-Apache.
If he dont start, the first think are aviable.
- Any Pathes in the VHOST are incorect or missing
But the startscript must write whats wrong
If you have no time to fix, bring back the backup of httpd.conf and start XAMPP-Apache that your content is aviable.
hope my english is good enough to understand me.
chirio
Deep