Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-24 Thread Aaron Gray
I found the old notes from years ago when we were on tomcat 6 (included with the BMC software app) and did the same thing, renaming their "tomcat" folder with the extracted 7.0.75 and did *.war (more .war's in this new release and the instructions below state) and tweaks to server.xml etc It

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-24 Thread Aaron Gray
Andre, that is all very educational and I feel even when this is resolved, that I have learned a good amount here; so I thank you for everything. I have an update. I decided to shutdown the vendor included/supplied 7.0.50 release of Tomcat. I extracted vanilla 7.0.75 tomcat, updated server.xml

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
To avoid getting totally confused, you may want to read this explanation first : https://wiki.apache.org/httpd/DirectoryListings In other words, when you send this request from the browser : https://loadbalancer.domain.com/SelfService The first response that /should/ come back, would be a

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
On 23.02.2017 21:17, Aaron Gray wrote: Another weird thing... If you go to: https://loadbalancer.domain.com/SelfService If I am viewing the headers immedaitely I see 302 not found. 302 is not "not found". It is "Found", and it is a Redirect response. See :

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
On 23.02.2017 19:10, Aaron Gray wrote: Okay, guys, please accept my most sincere apology on this thing. I just figured 1 thing out. browser -> f5:443 -> httpd (23270, https) -> tomcat (http) using the /static works! (see below) If /static/index.html wasnt specified, then it hangs, then comes

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
Another weird thing... If you go to: https://loadbalancer.domain.com/SelfService If I am viewing the headers immedaitely I see 302 not found. Then I wait the 30 sec for it to totally fail and change the URL in the browser to https://loadbalancer.domain.com:232700/SelfService If you just remove

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
I randomly tried https://loadbalancer.domain.com/SelfService/index.html It works perfectly. No issues. I have no idea why its needed to add on the /index.html (i'm lucky this exists in the tomcat .war, as it was a guess). This is visually not appealing, but workable. Maybe I can do some url

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
Okay, guys, please accept my most sincere apology on this thing. I just figured 1 thing out. browser -> f5:443 -> httpd (23270, https) -> tomcat (http) using the /static works! (see below) If /static/index.html wasnt specified, then it hangs, then comes back as

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
Working with my F5 guy, we had an idea, since 80/tcp and 443/tcp were already open to the VIP on the F5, we simply turned of 80 -> 443 redirect on the F5, and then configured the F5 to use the non-HTTP port in Apache HTTP Server (the two backend servers). So its HTTP the entire way through, and

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Aaron Gray
SSLProxyEngine On Was already turned on this entire time inside the ssl.conf (I include it) VirtualHost section. I am debating turning on HTTPS in Tomcat on the backend 10.x.x.x app server, and then HTTPS the whole way through and see if that makes any difference. I may need to request a new

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread Antonio S . Cofiño
On 23/02/17 12:43, André Warnier (tomcat) wrote: On 22.02.2017 19:22, Aaron Gray wrote: So this is interesting. So from HTTP server #1 (172.1.1.1 example) I hit: https://172.1.1.1:23270/static and I see this in the HTTP log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/ HTTP/1.1"

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-23 Thread tomcat
On 22.02.2017 19:22, Aaron Gray wrote: So this is interesting. So from HTTP server #1 (172.1.1.1 example) I hit: https://172.1.1.1:23270/static and I see this in the HTTP log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/ HTTP/1.1" 200 32 I see this in the Tomcat log: 172.1.1.1 - -

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-22 Thread Aaron Gray
So this is interesting. So from HTTP server #1 (172.1.1.1 example) I hit: https://172.1.1.1:23270/static and I see this in the HTTP log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/ HTTP/1.1" 200 32 I see this in the Tomcat log: 172.1.1.1 - - [22/Feb/2017:10:14:48 -0800] "GET /static/

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
Honestly, thank you for your replies and helping me step through this. I was at my wits end with no known place to go. I appreciate it, truly. I have to leave now to be somewhere in like 15 minutes, so I cant really get in to all this now, but I read it. and I will dedicate time to it tomorrow

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread tomcat
On 21.02.2017 23:28, Aaron Gray wrote: Antonio: The Tomcat server has no knowledge of the F5, or that it is being fronted by an Apache HTTP Server. I do SSL termination in Apache HTTP Server, and clear-text from HTTP to Tomcat. My redirect port for the normal HTTP listen in Tomcat is commented

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
Antonio: The Tomcat server has no knowledge of the F5, or that it is being fronted by an Apache HTTP Server. I do SSL termination in Apache HTTP Server, and clear-text from HTTP to Tomcat. My redirect port for the normal HTTP listen in Tomcat is commented out. Andre: The URL I am

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread André Warnier
On 21.02.2017 20:45, Aaron Gray wrote: I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=172.x.x.x INTERNAL=10.x.x.x

Re: Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Antonio S. Cofino
Aaron, on tomcat instances change the redirectPort attributte on the http conectó to the loabbalancer's port 443 My guess is that your webapp has restriction rule requesting SSL con fidntial channel. Therefore the non-confidential to the 18080 port from the balancer are redirected to the 23270

Strange URL rewrite when reverse proxy with Apache HTTP Server

2017-02-21 Thread Aaron Gray
I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=172.x.x.x INTERNAL=10.x.x.x server1 https listen = 172.1.1.1:23270