|
|
|
|
||||||
| comp.info.servers.win Web servers for MS Windows and NT. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
I may be wrong! but... usually a subdomain is something like subname.domainname.com so in your httpd.conf file which you will have to stop apache to change and also rename to httpd.txt for the moment to open in a text editor... go to the bottom and find NameVirtualHost * (remove pound sign #) <VirtualHost *> ServerAdmin youremail@yourisp.com ServerName subname.domainname.com:80 ServerAlias *.subname.domainname.com.com subname.domainname.com.com DocumentRoot /www (your root directory for this domain) ErrorLog logs/subname.domainname.com.com-error.log CustomLog logs/subname.domainname.com.com-access.log common </VirtualHost> The document root directory may be one you create in your /www directory as a sub-directory for your subdomain. Some here will name that folder the same as their subdomain name. ie... /www/subdomain.com/ but you can call it what you want as long as you point to it here correctly. hope that is correct and s... now rename your httpd.txt to httpd.conf and start up apache again. r Wolf wrote: > hi, > i am new to use apache...i have plan of hosting a website,.... to > have experience i have registered for a free sub domain name....and i > don't know how to connect to it...plz me on tis my pals.... |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
I may be wrong! but... usually a subdomain is something like subname.domainname.com so in your httpd.conf file which you will have to stop apache to change and also rename to httpd.txt for the moment to open in a text editor... go to the bottom and find NameVirtualHost * (remove pound sign #) <VirtualHost *> ServerAdmin youremail@yourisp.com ServerName subname.domainname.com:80 ServerAlias *.subname.domainname.com.com subname.domainname.com.com DocumentRoot /www (your root directory for this domain) ErrorLog logs/subname.domainname.com.com-error.log CustomLog logs/subname.domainname.com.com-access.log common </VirtualHost> The document root directory may be one you create in your /www directory as a sub-directory for your subdomain. Some here will name that folder the same as their subdomain name. ie... /www/subdomain.com/ but you can call it what you want as long as you point to it here correctly. hope that is correct and s... now rename your httpd.txt to httpd.conf and start up apache again. r Wolf wrote: > hi, > i am new to use apache...i have plan of hosting a website,.... to > have experience i have registered for a free sub domain name....and i > don't know how to connect to it...plz me on tis my pals.... |
|
![]() |
| Outils de la discussion | |
|
|