LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
HTTPD and Virtual Hosts on RHEL


Hi

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, 05:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 11:04 PM   #3
gergely89
Member
 
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 www.domain.com and domain.com styled names.

linux

Last edited by gergely89; 02-27-2009 at 11:46 PM.
 
  


Reply


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 01:04 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
httpd could not be started - Virtual Hosts aztek Linux - Newbie 1 05-26-2006 12:06 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 09:44 PM
httpd virtual hosts TKS Slackware 1 07-02-2004 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 AM.

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