Solved

set up virtual hosts in centos 5, using subdomain

Posted on 2011-09-26
4
603 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
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.

829 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