LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache and Subdomains, Help (https://www.linuxquestions.org/questions/linux-general-1/apache-and-subdomains-help-103265/)

pzorn 10-12-2003 10:05 PM

Apache and Subdomains, Help
 
Hi I am trying to setup subdomains with Apache 2, I have got the records in my DNS but Not sure what is going on?

It worked with apache 1.3, but don't know why its not working for Apache 2.

Here is part of my httpd.conf file.
Quote:

NameVirtualHost 64.78.149.110

<VirtualHost 64.78.149.110>
ServerAdmin webmaster@mydomain
DocumentRoot /var/www/html/my/
ServerName mydomain.
</VirtualHost>

<VirtualHost 64.78.149.110>
ServerAdminwebmaster@mydomain.
DocumentRoot /var/www/html/my/
ServerName my.mydomain.
</VirtualHost>
They do have the .com on them but since I don't have 5 post, and it auto adds urls then i just dropped the .com

I am not sure what to go or whatelse to do. Any help would be great, thanks.

trickykid 10-18-2003 11:04 AM

Instead of <VirtualHost IP-Address> try just putting the wildcard instead there like:

<VirtualHost *>

Restart Apache and test..

Also, you have your own DNS or using some other service, etc?

Big Brad 01-27-2004 07:00 PM

Ok guys I am having some of the same trouble. Except I can't get the DNS records right. I want to montrose.bjc.id.au as a subdomain but can't work out the DNS records. Please if someone could give me explanation of each dns record and what they do.


All times are GMT -5. The time now is 04:29 AM.