LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-16-2009, 05:12 PM   #1
LR_Brian
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Apache as Reverse Proxy


Hello,

I am very desperate to resolve an issue I've been having. First off, I apologize, the servers I have in my office are all Windows based servers.

If you kept reading, thank you. Here goes:

I am currently running a third party software hosted in IIS6.0 on W2K3. The software is hosted as Virtual Directories under the Default Website.

The probelm, if you visit our website webtools.luceresearch.com, you will be prompted with a login portal. Login with credentials Test and password CC3Demo and Context Luce. Once logged in, click the Reporting link at the top of the page. Notice that it is a javascript call that inserts the servers private IP address (172.16.1.5) and the request will timeout with a 404 error.

This is where Apache comes in. I heard through some advice that I should install Apache to use the Reverse Proxy functions. So I did my homework and changed my IIS site binding to port 8080 and installed Apache to port 80.

So I did some searching and initially tried to use the ReWrite rules to rewrite the IP address to the external IP 216.253.206.205 instead of 172.16.1.5. No matter how hard I tried, this did not work.

So then I did some more homework and tried to use the ProxyPass and ProxyPassReverse commands, and it seems to serve my pages when I visit 172.16.1.5/voxco.web instead of 172.16.1.5:8080/voxco.web. So I am thinking the Reverse Proxy is working; however when you click the Reporting link, again it launches the window with a request to the internal server IP.

More digging turned up ProxyHTMLExtended on with ProxyHTMLURLMap commands. I added these to the config file and voila, it rewrote the ip address from the javascript window. The problem is that it works TOO good. It is now rewriting the IP address even on internal requests to the 172.16.1.5/voxco.web and clicking reporting will now try to open the page 216.253.206.205 which will ultimately timeout.

I am at a loss and desperate for help.

Thanks in advance for your help and advice.
 
Old 02-16-2009, 05:12 PM   #2
LR_Brian
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Attached you will find my httpd.conf, error.log and access.log.
Attached Files
File Type: txt httpd.txt (18.2 KB, 45 views)
File Type: txt error.txt (250.6 KB, 30 views)
File Type: txt access.txt (233.6 KB, 31 views)

Last edited by LR_Brian; 02-16-2009 at 05:35 PM. Reason: Attached Files
 
Old 02-16-2009, 07:20 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You're much better off tackling this from the IIS website side. You need to figure out why the script is generating links to IPs instead of hostnames. If the site's script would properly generate URLs that refer to the hostname of the site, you could easily control which IP it is through DNS. Your internal clients would get the internal IP, and external clients would get the public IP. You're going to have no end of pain if you try to solve this by using URL re-writing.
 
Old 02-17-2009, 11:46 AM   #4
LR_Brian
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hi chort,

Thanks for your reply. The only feasible way to tackle this from the IIS side is to install ISA Server, which I've looked into, but the price is rediculous.

Sadly the software was designed to be installed to and used with IP addresses, so the option for using DNS resolution does not exist. This is a request I have made with them numerous times.

This has led me to try the Apache solution as described above.

I do appreciate your suggestions and response.

Thanks again.
 
Old 02-17-2009, 12:33 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Then the software is totally broken. Use different software that isn't broken. If it was developed in-house, tell them they need to rewrite it to behave like a proper networked application. Trying to solve fundamentally broken software by applying layers of work-arounds is like trying to repair a broken leg with bandaids.
 
  


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 reverse proxy noir911 Linux - Server 0 02-05-2008 09:21 PM
reverse proxy with apache 2 bootiack Linux - Software 1 08-09-2005 07:47 PM
Apache 2.0 Reverse Proxy Error Adam Shapiro Linux - Software 0 11-29-2003 08:47 PM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 01:16 PM
apache Reverse Proxy !!!!! ashish_v Linux - Software 0 09-05-2003 05:42 PM

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

All times are GMT -5. The time now is 08:40 AM.

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