Solved

Quick subdomain question

Posted on 2012-03-16
2
305 Views
Last Modified: 2012-08-13
I have two really quick and (hopefully) easy questions relating to subdomains in apache2 / ubuntu.

First, can I have two virtualhosts listen on the same port if one is for a subdomain and one is for the main domain?

Second, how do I configure a subdomain in the DNS control panel for godaddy?
I added this record to my CNAME section
*host*          *points to*                      *ttl*
sub	          sub.example.com	              1hr

Open in new window

Is that correct?

Thanks
0
Comment
Question by:HDM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Khandakar Ashfaqur Rahman earned 500 total points
ID: 37731967
Check the following link:
http://daniel-lange.com/archives/2-Multiple-Apache-VHosts-on-the-same-IP-and-port.html

And for creating a subdomain you need to add A record:
www IN A 123.2.33.45.

Additionally, you can create alias/CNAME but without CNAME it's also ok.
web IN CNAME www.domain.com.
0
 

Author Closing Comment

by:HDM
ID: 37731979
Thanks! As soon as I created the A record everything started working :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question