Solved

Quick subdomain question

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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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