Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-12-2003, 10:05 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
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.

ServerAdmin webmaster@mydomain
DocumentRoot /var/www/html/my/
ServerName mydomain.

DocumentRoot /var/www/html/my/
ServerName my.mydomain.
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.
Old 10-18-2003, 11:04 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 232Reputation: 232Reputation: 232
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?
Old 01-27-2004, 07:00 PM   #3
Big Brad
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Rep: Reputation: 15
Ok guys I am having some of the same trouble. Except I can't get the DNS records right. I want to 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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
APACHE and Subdomains basketkase999 Linux - Software 18 05-21-2005 10:38 PM
Apache VirtualHost, multiple domains and subdomains chrisfx Linux - Networking 2 08-10-2004 02:58 PM
apache userdir subdomains kodon Linux - Networking 7 08-09-2004 07:16 PM
Subdomains & Apache Vhosts Big Brad Linux - Newbie 8 01-28-2004 09:36 PM
accessing subdomains through network (apache) niehls Linux - Networking 3 03-16-2003 04:29 PM

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration