LinuxQuestions.org
Register a domain and help support LQ
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-14-2003, 11:19 PM   #1
bytebrowser
Member
 
Registered: Jun 2003
Location: QLD Australia
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57

Rep: Reputation: 15
multiple web page hosting


Hi

I am still learning!

I plan to set up a Redhat 9 box which will be connected to the net via a ADSL router. I plan to use it a web hosting box. At present my ISP (Telstra) will only give me a dynamic IP address so I am going to use dynDNS to help me out here.

As well as hosting my site, my friend has asked me if he can put his site on my computer as well.

From what I understand, when someone types in my website, it goes to dynDYS who point the site at my machines IP address. How will I be able to get Linux to distinguish between his website and mine?

Thanks
Pete
 
Old 06-15-2003, 12:04 AM   #2
hornet
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
Very easily infact. I'm presuming that you will both have diff domains, www.site1.com and www.site2.org.

You would setup dyndns.org to point BOTH domains to your IP address. They can be both updated by the client software.

Then on your redhat box, running apache you add some sections to the config similar to below.

<VirtualHost www.site1.com>
DocumentRoot /var/www/html/site1
ServerName www.site1.com
</VirtualHost>

<VirtualHost www.site2.org>
DocumentRoot /var/www/html/site2
ServerName www.site2.org
</VirtualHost>

I run this on my server, running 3 different sites, and it works flawless todate.
 
Old 06-15-2003, 12:53 AM   #3
bytebrowser
Member
 
Registered: Jun 2003
Location: QLD Australia
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57

Original Poster
Rep: Reputation: 15
thanks for all your help hornet
 
Old 06-15-2003, 01:22 AM   #4
bytebrowser
Member
 
Registered: Jun 2003
Location: QLD Australia
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57

Original Poster
Rep: Reputation: 15
Another quick one, my friend needs (i shudder) front page extensions (shudder) for his site. Is this going to be something hard to accomodate?
 
Old 06-15-2003, 04:42 AM   #5
hornet
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
that i dont know have a look at apache's website www.apache.org to start with.
 
  


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
Help with Web Page Hosting and Apache2 Hambone_20003 Linux - Software 2 08-23-2005 09:31 PM
Free web based control panel for web hosting? mooman_fl Linux - Software 0 06-18-2004 06:16 PM
Mandrake 9.2, hosting web page behind router on dynamic ip c_mitulescu Linux - Networking 5 01-05-2004 07:59 PM
Mandrake 9.2, hosting web page behind router on dynamic ip c_mitulescu Linux - Security 1 01-05-2004 12:38 AM
Multiple Web hosting jcb_dreamvsat Linux - Newbie 2 07-07-2003 01:28 PM


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

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