#1  
Old 21st June 2007, 22:29
jlavetan jlavetan is offline
Junior Member
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default mod_proxy and Shared IP message

I am using external name servers and inserted an "A" record for test.domain1.com to point my external IP. I have Apache 2.2 installed on a Windows machine that is using mod_proxy to forward requests to my LAMP server (with ISPConfig installed). All port 80 traffic is forwarded to the windows box with Apache / mod_proxy. Everything is behind a NAT firewall.

With everything setup as it is currently, I get the "Shared IP" message when trying to go to either of the two sites I have setup in ISPConfig.

If I take the windows box out of the equation and forward port 80 traffic directly to the LAMP server, the sites appear as they should.

Is there something I'm missing?
Reply With Quote
Sponsored Links
  #2  
Old 22nd June 2007, 00:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Did you select the internal IP address for the website and not the external IP in ISPConfig?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd June 2007, 00:33
jlavetan jlavetan is offline
Junior Member
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, the internal ip of 10.1.252.2 was selected.
Reply With Quote
  #4  
Old 22nd June 2007, 00:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Did you use in the proxy request configuration the domain or IP on your windows server? ISPConfig uses namebased vhosts, so you must use the domain in the proxy request and not the IP address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 22nd June 2007, 16:46
jlavetan jlavetan is offline
Junior Member
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

On the Windows machine(proxy), httpd-vhosts.conf contains the following:

Code:
<VirtualHost *:80>
#lamp
   ServerName lamp
   ServerAlias test.domain1.com
   ProxyPass            /      http://10.1.252.2/
   ProxyPassReverse      /      http://10.1.252.2/
</VirtualHost>
The ServerName "lamp" is in the hosts file of the Windows machine.

This setup works for all of the other sites I have setup except for ISPConfig.
Reply With Quote
  #6  
Old 22nd June 2007, 16:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

This can not work with virtula hosts as I posted anove, you must use the hostname and not the IP!

If the website you want to access on the ispconfig server has the domain www.test.int, then your setup must look like:

<VirtualHost *:80>
#lamp
ServerName lamp
ServerAlias test.domain1.com
ProxyPass / http://www.test.int/
ProxyPassReverse / http://www.test.int/
</VirtualHost>

and the hosts file on your windows machine must resolve www.test.int to the correct internal IP address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 22nd June 2007, 17:03
jlavetan jlavetan is offline
Junior Member
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Can't believe I missed that...

Anyway, thanks for you help... works perfectly
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


All times are GMT +2. The time now is 16:44.


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