Solved

Quick subdomain question

Posted on 2012-03-16
2
299 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now