LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2011, 07:34 PM   #1
Ubuntu Client
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
Virtual Host


Hi,

I have domain and want to add in my virtual host.
Code:
<VirtualHost *>
     ServerAdmin squire@ducklington.org
     ServerName www.pindahterima.net
     ServerAlias www.pindahterima.net
     DocumentRoot /var/www/html
     ErrorLog /var/log/httpd/pindahterima.net/error.log
     CustomLog /var/log/httpd/pindahterima.net/access.log combined
</VirtualHost>

<VirtualHost *>
     ServerAdmin squire@ducklington.org
     ServerName pindahterima.net
     ServerAlias storage1.pindahterima.net
     DocumentRoot /var/www/html/storage1.pindahterima.net
     ErrorLog /var/log/httpd/storage1.pindahterima.net/error.log
     CustomLog /var/log/httpd/storage1.pindahterima.net/access.log combined
</VirtualHost>

<VirtualHost *>
     ServerAdmin squire@ducklington.org
     ServerName storage2.pindahterima.net
     ServerAlias storage2.pindahterima.net
     DocumentRoot /var/www/html/storage2.pindahterima.net
     ErrorLog /var/log/httpd/storage2.pindahterima.net/error.log
     CustomLog /var/log/httpd/storage2.pindahterima.net/access.log combined
</VirtualHost>
On DNS Management:
Code:
web.pindahterima.net A 202.75.4.100
storage1.pindahterima.net CNAME web.pindahterima.net
storage2.pindahterima.net CNAME web.pindahterima.net
I can access storage1 but page cannot view storage2. Same configuration.

Please assist me.

Thanks

Last edited by Ubuntu Client; 06-06-2011 at 07:58 PM.
 
Old 06-06-2011, 07:51 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Have you included all lines concerning virtual hosts? If so, you're
missing the NameVirtualHost directive, which is required. If not,
please include all the lines concerned with virtual hosts.
 
Old 06-06-2011, 07:58 PM   #3
Ubuntu Client
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Adding NameVirtualHost and solve my problem.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ping from Vmware host to Virtual Box host greatcyrus Linux - Virtualization and Cloud 7 03-09-2011 02:03 AM
debian lenny - all virtual hosts lead to first virtual host rantastic Linux - Server 2 04-21-2010 09:32 PM
[SOLVED] Apache2 - virtual host defaulting to default host slimjim Linux - Server 1 10-31-2009 01:47 AM
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM
virtual users and virtual host need to stay at /home nephish Linux - Networking 3 01-14-2006 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration