Solved

set up virtual hosts in centos 5, using subdomain

Posted on 2011-09-26
4
595 Views
Last Modified: 2012-05-12
CentOS release 5.5 (Final)

Using command line I want to set up another site on exsisting server, hosted by ukfast. Main site is
 www.fridaysmove.com

I want to set up another site using subdomain
www.cms.fridaysmove.com

so I addes this to httpd.conf

 NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin bruceclothier@syntarsus.co.uk
    DocumentRoot /var/www/cms
    ServerName www.cms.fridaysmove.com
    ErrorLog logs/cms.fridaysmove.com-error_log
    CustomLog logs/cms.fridaysmove.com-access_log common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin bruceclothier@syntarsus.co.uk
    DocumentRoot /var/www/html
    ServerName www.fridaysmove.com
    ErrorLog logs/cms.fridaysmove.com-error_log
    CustomLog logs/cms.fridaysmove.com-access_log common
</VirtualHost>


 www.fridaysmove.com

works fine

but
 www.cms.fridaysmove.com

is not

Do I need to do anything else

0
Comment
Question by:Darko_Kantic
  • 2
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
Comment Utility
Did you add the DNS record for www.cms.fridaysmove.com ?  Not resolving externally.
[root@broken ~]# dig www.fridaysmove.com +short
109.108.142.14

Open in new window

[root@broken ~]# dig www.cms.fridaysmove.com

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 <<>> www.cms.fridaysmove.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 57515
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

Open in new window

0
 

Author Comment

by:Darko_Kantic
Comment Utility
Ukfast just told me that I need to add subdomain with the domain registrar, which is mistral

So I have to wait till tomorrow for that, once that is done, question is: Do I need to do anithing else at the server level? apart of adding virtual host entries in to httpd.conf file
0
 
LVL 21

Expert Comment

by:Papertrip
Comment Utility
Hi, is this still an issue?
0
 

Author Comment

by:Darko_Kantic
Comment Utility
no thanks, this was long time ago
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

14 Experts available now in Live!

Get 1:1 Help Now