LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2008, 09:32 AM   #1
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221
Thanked: 0
apache virtual hosting


[Log in to get rid of this advertisement]
I am trying to setup virtual hosting (name based on same system)but as i have set it up for SSL so i am not able to work it out.
what i am thinking now is, can i modify my hosts file and add an entry in it with the ip address and domain name for my other server so that whenever any request will come to this server it will be directed/resolved by hosts file and will forward it to second webserver.

as i have installed my webserver behind the adsl ..portfording done everything is working pretty well.now i want other domains on the same wan IP.will this work ?..
say my webserver1.com is running on 192.168.2.2 and now i have installed another webserver2.com with ip address 192.168.2.10 because my adsl modem is configured for 192.168.2.2 all the port 80 request will be forwarded to 192.168.2.2 , what i am thinking i will add entry for 192.168.2.10 for my second webserver2.com in hosts file.
will this work ?
or please advice how to eliminate ssl ?
soroccoheaven is offline     Reply With Quote
Old 11-26-2008, 02:28 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 758
Thanked: 16
You can still do virtual hosting on port 80 even if you have ssl enabled as that runs on port 443, also if you want to run the other sites on a different server then you can use mod_proxy for that.
datopdog is offline     Reply With Quote

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
apache virtual hosting msound Linux - Networking 3 09-14-2005 07:09 PM
Apache Virtual Hosting abhijeetudas Linux - Networking 2 05-29-2005 05:26 AM
Apache and Virtual Hosting gcobb Fedora 4 10-29-2004 01:10 AM
Virtual Hosting with apache, i think... dengi Linux - Software 1 10-26-2003 10:43 PM
Apache Virtual Hosting kmac Linux - General 2 04-12-2001 11:23 PM


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

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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration