Re: redirect request from 8080 to port 80

2013-05-16 Thread Ognjen Blagojevic
André, On 15.5.2013 23:56, André Warnier wrote: Anyway, to get back to the OP's original issue, and considering the documentation only, I do understand a bit of confusion as to what is really being logged in the Access Log. Yes, I see. You are right, the documentation or the behavioir of para

Re: redirect request from 8080 to port 80

2013-05-16 Thread Ognjen Blagojevic
Chris, On 15.5.2013 16:47, Christopher Schultz wrote: I see that only the URI is being send in the first-line of the request, and not the protocol-qualified URL. Ognjen asserted that most user agents send the whole URL but I have not observed this -- neither today nor in the past. I think most b

Re: redirect request from 8080 to port 80

2013-05-15 Thread Mark Thomas
On 15/05/2013 22:56, André Warnier wrote: > Mark Thomas wrote: >> On 15/05/2013 17:15, André Warnier wrote: >>> I find it less intuitive because of the Javadoc of >>> HttpServletRequest.getLocalPort : >>> getLocalPort >>> >>> int getLocalPort() >>> >>> Returns the Internet Protocol (IP) port

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Mark Thomas wrote: On 15/05/2013 17:15, André Warnier wrote: Ognjen Blagojevic wrote: André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the

Re: redirect request from 8080 to port 80

2013-05-15 Thread Mark Thomas
On 15/05/2013 17:15, André Warnier wrote: > Ognjen Blagojevic wrote: >> André, >> >> On 15.5.2013 15:38, André Warnier wrote: >>> As far as I understand here, we are not talking about a proxy situation, >>> we are talking about Iptables, which does not proxy, it just modifies >>> packets. >>> So th

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Ognjen Blagojevic wrote: André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the URL that Tomcat gets from the 1st request line does not contain

Re: redirect request from 8080 to port 80

2013-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 5/15/13 9:38 AM, André Warnier wrote: > Mark Thomas wrote: >> On 15/05/2013 14:16, André Warnier wrote: >>> Ognjen Blagojevic wrote: >> Iptables will not change the URL. Iptables merely redirects all packets received on port 808

Re: redirect request from 8080 to port 80

2013-05-15 Thread Ognjen Blagojevic
André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the URL that Tomcat gets from the 1st request line does not contain a hostname[:port}. Acco

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Mark Thomas wrote: On 15/05/2013 14:16, André Warnier wrote: Ognjen Blagojevic wrote: Iptables will not change the URL. Iptables merely redirects all packets received on port 8080 to port 80. It will not alter the contents of the packets. Therefore, Tomcat will receive your HTTP request as it

Re: redirect request from 8080 to port 80

2013-05-15 Thread Mark Thomas
On 15/05/2013 14:16, André Warnier wrote: > Ognjen Blagojevic wrote: >> Iptables will not change the URL. Iptables merely redirects all >> packets received on port 8080 to port 80. It will not alter the >> contents of the packets. Therefore, Tomcat will receive your HTTP >> request as it is sent b

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Ognjen Blagojevic wrote: Anil, On 15.5.2013 13:42, Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) wrote: We are using tomcat version 7.0.25 and in server.xml, we have two connector port defined:80 (http)and 443(https). In /etc/sysconfig/iptables, we have redirect logic written that w

Re: redirect request from 8080 to port 80

2013-05-15 Thread Ognjen Blagojevic
Anil, On 15.5.2013 13:42, Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) wrote: We are using tomcat version 7.0.25 and in server.xml, we have two connector port defined:80 (http)and 443(https). In /etc/sysconfig/iptables, we have redirect logic written that will redirect the request