#1  
Old 25th November 2008, 16:47
soroccoheaven soroccoheaven is offline
Member
 
Join Date: Aug 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 ?
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2008, 15:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You can forward port 80 to just one web server, so this will not work. But you can set up Apache on 192.168.2.2 as a reverse-proxy for 192.168.2.10. This should give you the idea:
http://www.howtoforge.com/apache_rev...roxy_ispconfig
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st December 2008, 06:49
soroccoheaven soroccoheaven is offline
Member
 
Join Date: Aug 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks Falko,
i have gone through the tutorial and finally decided to eliminate SSL so that i will be able to configure apache for nam based virtual hosting.can you guide me how to eliminate SSL now ?
Reply With Quote
  #4  
Old 2nd December 2008, 15:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Comment out
Code:
Listen 443
in the Apache configuration and remove all SSL parts from your vhosts.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 3rd December 2008, 09:35
soroccoheaven soroccoheaven is offline
Member
 
Join Date: Aug 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks falko, this has been implemented but dont know what's the problem, will try/check to do it again.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Virtual Hosting and SSH madcat87 Server Operation 7 31st August 2010 13:20
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Apache Virtual Hosts - I have never gotten this right. DazzyB Server Operation 2 24th December 2007 14:37
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45
Virtual hosting with Apache not working gimhan90 Server Operation 10 10th February 2006 16:11


All times are GMT +2. The time now is 12:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.