This is a discussion on Unable to start my Apache server... within the Windows Web Servers forums, part of the Web Server and Related Forums category; hi, i am new to use apache...i have plan of hosting a website,.... to have experience i have registered ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 helps... 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 help me on tis my pals.... |
|
|||
|
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 helps... 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 help me on tis my pals.... |