Solved

set up virtual hosts in centos 5, using subdomain

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

Suggested Solutions

Title # Comments Views Activity
High Bandwidth Usage 6 58
nagios alerts 3 46
Penetration Testing home based work 3 75
Migrating php-mysql-jquery application to Microsoft Azure Cloud 7 31
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
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.

803 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