Re: Using HTTP 1.1 over a configured HTTP2 Connector
On 04/10/2024 20:32, Anurag Sharma wrote: HI Mark And Christopher, Apologies for the late response, Tomcat act as a reverse proxy to 3rd party legacy system. We have recently upgraded Tomcat to use HTTP/2 protocol; this causes the legacy system not to render and get an error message when rendering. Tomcat application war acts as a reverse proxy (which means all requests hit the web app then we have Camel Proxy to proxy to the endpoint). Browser-->HTT2-->Tomcat Web App (Reverse Proxy) -->HTT1.1 --> 3rd Party UI Since Tomcat is configured with HTTP protocol, the browser automatically negotiates the http2 protocol. Is there any way to configure some path ( /context-path/XXX) would still needs to be HTTP 1.1. No. Currently, the only option is for us to open different connector ports strictly with HTTP 1.1 and have traffic land here. Is there any better approach for this ? The reverse proxy should work equally well whether the client uses HTTP/1.1, HTTP/2 or AJP. My recommendation would be to fix the bug(s) in the reverse proxy code that cause it to break with HTTP/2. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
At start up, my web pages prints as text, not as a web page
I am using apache-tomcat-8.0.53, on the boron version of Linux. I'm trying to bring up a version of my webpage that I had running roughly 3 years ago. I have followed the setup instructions at file:///usr/share/apache-tomcat-8.0.53/webapps/docs/setup.html and everything seemed to go ok. I installed my webpage application at: //usr/share/apache-tomcat-8.0.53/webapps/ihyp I then tried to access the webpage on my LAN and my browser displayed the text of ihyp/pages/page1.jsp where "ihyp" is the web application. I was expecting the webpage, not the text of the page. I checked the ihyp/logs directory and there were no error messages there. Can anyone help with what my next step(s) should be? Thanks in advance. Jim Anderson
Re: At start up, my web pages prints as text, not as a web page
Jim, On 06.10.2024 20:15, Jim Anderson wrote: I am using apache-tomcat-8.0.53, on the boron version of Linux. Apache Tomcat 8.0 is EOL (=End Of Life, which means no support anymore) since 2018. You shouldn't use that version anymore. [...] I then tried to access the webpage on my LAN and my browser displayed the text of ihyp/pages/page1.jsp where "ihyp" is the web application. I was expecting the webpage, not the text of the page. Did you start Tomcat? Is it really running? Can you access http://:? I checked the ihyp/logs directory and there were no error messages there. Are there any log files at all? Sebastian - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: At start up, my web pages prints as text, not as a web page
> On Oct 6, 2024, at 13:15, Jim Anderson wrote: > > I am using apache-tomcat-8.0.53 Ouch. As Sebastian said, 8.0.x has not been supported for over six years. Your first step should be updating to version 9.0.x, then think about 10.1 or 11. Look at the following for guidance: https://tomcat.apache.org/upgrading.html https://tomcat.apache.org/migration-9.html > , on the boron version of Linux. I'm trying to bring up a version of my > webpage that I had running roughly 3 years ago. > > I have followed the setup instructions at > file:///usr/share/apache-tomcat-8.0.53/webapps/docs/setup.html and everything > seemed to go ok. > > I installed my webpage application at: > > //usr/share/apache-tomcat-8.0.53/webapps/ihyp > > I then tried to access the webpage on my LAN Exactly what URL did you use? > and my browser displayed the text of ihyp/pages/page1.jsp where "ihyp" is the > web application. I was expecting the webpage, not the text of the page. If Tomcat is running, then it would appear that the JSP servlet isn’t functioning properly and the request was handled by the default servlet - but it’s pointless to pursue this on 8.0.53. However, it may be that something else on your system is serving up the page, not Tomcat. > I checked the ihyp/logs directory and there were no error messages there. Look in all the Tomcat logs, not just the one for the application. > Can anyone help with what my next step(s) should be? Upgrade, then try again. - Chuck