Solved

set up virtual hosts in centos 5, using subdomain

Posted on 2011-09-26
4
608 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
[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
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36601141
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
ID: 36601443
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
ID: 37211808
Hi, is this still an issue?
0
 

Author Comment

by:Darko_Kantic
ID: 37212268
no thanks, this was long time ago
0

Featured Post

Independent Software Vendors: 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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

735 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