View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-02-2005, 06:11 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
Help with Virtual Hosts?

Hello everyone,

I want to set-up two domains on my REDHAT 8 server accessed from the Internet. I've registered the domains and set-up the Name Servers and DNS. The default virtual host point to wwwmyweb1couk and all the sub directories that have been set-up are accessible.

I then tried to set-up the second virtual host using the tool:

Add new domian
Set Document Root Directory: /var/www/html/myweb2

Host Information: Name based virtual host

IP address: *:80
Host Name: wwwmyweb2couk

I then checked the httpd.conf file and everything looked OK.

I created /var/www/html/myweb2/index.html and set folder and file permissions to the same values on the default web. And added index.html to the Directory Page Search List.

Finally I restarted the httpd service.

However, when I enter wwwmyweb2couk into my browser (IE6) I get the default root home page saying this is an Apache server and not the page in the Doc Root Director.

I'm running a Zonealarm firewall on the client machine but this shouldn't make any difference. And the server is a seperate box.

Any ideas - I've been struggeling on this for weeks?

Graham UK
Old 07-02-2005, 06:29 AM   #2
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Try this


DocumentRoot /home/yourdomain/public_html
BytesLog domlogs/

check the permissions of public_html folder set to 755

restart apache
Old 07-02-2005, 09:03 AM   #3
LQ Newbie
Registered: Jul 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks, this appears to have resolved the problem.

I removed the default virtual host and the additional vhost then created to new vhost sections as you have shown. When I restated the httpd service all worked as expected. In future I think it might be easier to edit httpd.conf than use the HTTP Server tools.

Many thanks

Last edited by econnections; 07-02-2005 at 09:30 AM.
Old 07-02-2005, 01:39 PM   #4
LQ Newbie
Registered: Jul 2005
Posts: 8

Original Poster
Rep: Reputation: 0

Last edited by econnections; 07-02-2005 at 01:42 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 09:44 PM
Virtual Hosts Help please... vbp6us Linux - General 15 07-11-2003 05:08 AM
Virtual Hosts!! chris Linux - General 4 02-03-2003 12:39 PM
Virtual Hosts chris Linux - General 1 11-20-2001 10:13 PM

All times are GMT -5. The time now is 11:21 AM.

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