LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-25-2008, 08:32 AM   #1
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
apache virtual hosting


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 ?
 
Old 11-26-2008, 01:28 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:13 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
Open Source Consulting | Domain Registration