Download your favorite Linux distribution at LQ ISO.
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 06-03-2005, 08:54 AM   #1
Registered: Oct 2004
Posts: 69

Rep: Reputation: 15
serving multiple domain websites on one server?

My friend pays a webhosting company and has 2 domains registered hosted on the same server.

the DNS entries for each point to the same address.

how does the server know what page to display?

Apparenly the webserver knows that if is accessed to display


and if is accessed to display


How do I accomplish this on my linux box? I'm using the apache that came with slack10.

Last edited by gsgleason; 06-03-2005 at 09:08 AM.
Old 06-03-2005, 10:50 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Apache supports virtual hosting and you'll find the documentation on how to set up your httpd.conf file here. It really isn't that hard once you've worked through it once. About the only real trouble you might run into is if you want to host multiple secure domains from a single host. Secure domains (https) requires one IP address per domain. There are ways to do this, but it is more complicated that simple virtual domain hosting.

Last edited by Hangdog42; 06-03-2005 at 10:52 AM.


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
Serving a Domain mpgram Linux - Networking 6 05-17-2005 11:06 PM
Serving saved websites to Windows clients MS3FGX Linux - General 3 07-12-2004 12:37 AM
Running multiple SSL websites on one server tictocdoc Linux - Networking 1 07-07-2004 03:26 PM
multiple boxes serving web pages peteABK Linux - Networking 7 09-11-2003 03:16 PM
Mail Server for Multiple Domain Names iamPlace Linux - Newbie 0 06-27-2003 09:28 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:31 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