Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-20-2009, 04:28 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
HTTPD and Virtual Hosts on RHEL


I have a few questions that I am hoping someone might be able to answer or at least point me in the right direction for some documentation that I can understand.

I am trying to host multiple websites on my RHEL box. I have the default site setup and if I go to the IP address everything is fine and the website works just as I would hope.

The trouble that I am having is getting the second website to come up and run. If I do an IP based virtual host what is recommend here? Do I need to use a private IP address for the server? If that is the case how do you configure your DNS servers to pipe the user to the site?

Or am I looking to set it up with a public static address. If so I am going to have to port two IP's to the single box which is fine but I would like to host them both off of one IP. I know this can be done I just don't know how to do it. I also am not the owner of the second website domain. Does this change my setup as well.

I also have a topic that is a bit off of this one and I will need to do later but I might as well post it now to see if I can get some hits for it. If I am hosting a website for someone else how do I setup my box to allow them the ability to edit there site and upload the changes to it?

Is it FTP based? If so i understand that you just allow them to the directory that there information is stored. My question if this is the case is if the user uploads changes to the site how do they become active. The server has to have the service restarted to make it read the new files.

Any help would be great I appreciate it.
Old 02-20-2009, 04:58 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Generally you'd use name based virtual hosting, and just listen on *:80 so you never need to care about the IP you're using within apache.
Old 02-22-2009, 10:04 PM   #3
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
An IP based virtual host web server only makes sense if you have multiple network cards or some forwarding mechanism in your router. It is possible to configure multiple IP addresses for the same network card as well.

But in most cases name based virtual hosting make more sense, and domains will be sorted (obviously) by name. But note that for each request that accesses your server by IP-address directly, that request will be lead to your first virtual site, which is the default. Make sure to add an alias for each domain/virtual host to recognise bioth both and styled names.


Last edited by gergely89; 02-27-2009 at 10:46 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
Possible to have virtual machine in RHEL 5.1 run RHEL 4.0-1 ES (64-bit) maryjane Linux - Newbie 1 10-20-2008 12:04 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
httpd could not be started - Virtual Hosts aztek Linux - Newbie 1 05-25-2006 11:06 PM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
httpd virtual hosts TKS Slackware 1 07-02-2004 10:31 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:20 PM.

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
Open Source Consulting | Domain Registration