LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-07-2002, 05:21 PM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
Running Two Web Sites On the same server


My questions is simply this:

Is it possible to run 2 or more websites on the same apache server or is it impossible?
 
Old 06-07-2002, 05:27 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
you can have 2 or more websites on the same apache server.. using the same IP of course too..
 
Old 06-07-2002, 05:38 PM   #3
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
any idea how to do that? its not mentioned in the docs...
 
Old 06-08-2002, 11:13 PM   #4
RWallett
Member
 
Registered: Jan 2002
Location: Anchorage, AK
Distribution: Gentoo, Ubuntu and Slackware
Posts: 38

Rep: Reputation: 15
You need to set up apache to use virtual hosts. Not too sure how to do it, as I've never tried, but there's a (brief) introductory explanation in the book "Linux: Network Solutions for your Office" by Viktor Toth (published by Sams, I believe), by checking in the www.apache.org web site (again, look for Virtual Hosts references) or by searching on Google.

Virtual Hosts let you bind multiple IP addresses to a single NIC--pretty cool. Then apache can display the appropriate default web page based upon the IP address of the incoming requests. WAY cool!
 
  


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
Personal web server for testing web sites? Ariod Linux - Newbie 12 09-29-2005 04:30 PM
Multiple Web sites on home server pk_fox Linux - Networking 11 08-19-2004 05:38 AM
running web server pcdebb Programming 3 09-09-2003 09:25 AM
so is a web server running Linux without X 4x faster than win2k server? Mr. Mojo Risin General 3 09-02-2003 07:41 PM
multiple web sites from one server robmainella Linux - Networking 1 08-22-2003 10:55 PM


All times are GMT -5. The time now is 08:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration