LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-11-2009, 12:32 PM   #1
jbentley
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Apache Proxy and Browser Issues


Good day,

I inherited a fairly functional website setup using Apache 2.2 that made use of mod_proxy and mod_balancer to pass requests from a proxy server to one of my two backend servers.

My proxy server drive crashed however, and I've been stuck trying to re-create the proxy and balancer setup. I'm at a state now where the proxying is working mostly, but my java is failing when accessed through IE yet works without issue in Firefox. The failure is coming on AJAX update calls.

The balancer/proxy setup:
ProxyRequests On

<Proxy balancer://balancer>
BalancerMember http://site1:80
BalancerMember http://site2:80
</Proxy>

ProxyPass / balancer://balancer/
ProxyPassReverse / balancer://balancer/

The apache access log, first from IE:
Code:
"POST /assets/assets/includes/file.php HTTP/1.1" 404 3332 
"http://site/assets" "Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; 
.NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)"
and then from Firefox, the same action/site/page
Code:
"POST /assets/includes/file.php HTTP/1.1" 200 132 
"http://site/assets/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; 
en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
The java/ajax call
Code:
Class.function(element1, element2, branch+"/assets/includes/file.php", PostString);
Based on my beginners understanding, Mozilla is correctly receiving only the site for the value of branch, whereas IE is getting the full url bar for the value of branch.

My question is, how can I convince IE to behave the same way that Firefox is?

Thank you in advance, and apologies if I mis-posted the topic here.
 
Old 03-12-2009, 10:48 AM   #2
jbentley
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Ok I have to revise my assessment of what is happening. This is not, as I thought, a browser issue.

Instead, what is happening is the following. If I connect to the site using the host entry I created for myself to simulate a dns entry, the site operates normally.

If I connect to the site through the direct IP address, then when it comes time to pass headers to java script for processing, it fails as it passes the entire header rather than the main site.

Examples:
Code:
dns/assets posted to java function: 
Class.function(element1, element2, branch+"/assets/includes/file.php", PostString);
branch = ""
Code:
ip/assets posted to java function:
Class.function(element1, element2, branch+"/assets/includes/file.php", PostString);
branch=/assets
Thus when the IP address is used; which is what's available to my users, they cannot utilize aspects of the site which are reliant upon ajax calls. Given that this has come about as a part of having to recreate my proxy configuration, I _believe_ that it's a configuration issue within apache.conf or my virtualhost, but I'm inexperienced enough to not be certain.

Any insight is very much appreciated, thanks.
 
Old 03-12-2009, 11:58 AM   #3
jbentley
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Issue actually resolved courtesy of finding an old hardcoded value for ip that the scripts were using. Le sigh
 
  


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
All traffic showed as proxy after installing nginx proxy to apache centosfan Linux - Server 0 10-25-2008 08:41 AM
help on how-to force set browser to proxy server rude_reality Linux - Networking 7 05-15-2008 01:43 PM
Setting Proxy in Browser ? avD,ZeeK DamnSmallLinux 1 10-23-2007 04:36 PM
web browser problem with proxy tacca SUSE / openSUSE 3 10-16-2004 08:48 AM
setting up proxy in Konqueror web browser ako Linux - Newbie 1 02-07-2004 09:11 AM

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

All times are GMT -5. The time now is 11:10 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