Get more debug information?

2022-09-08 Thread Hua Zhang
Hi Tomcat, I have a question about how to get more debug information in a tomcat log file. Sometimes my websites, which run on tomcat 9.0.43, suddenly all went down without a good reason. When this happens, the only thing I can do is restart the Tomcat service. I am trying to figure out why it h

Re: 回复: getServerPort always return 80

2022-01-06 Thread Hua Zhang
Hi Wang, I hope that this link will help you to solve the problem: https://stackoverflow.com/questions/19751313/forward-request-headers-from-nginx-proxy-server You may check the tomcat access log to see what kind of traffic it received from nginx to confirm that your issue is related to nginx (pr

Re: 回复: getServerPort always return 80

2022-01-06 Thread Hua Zhang
Hi Wang, A second application (nginx) is involved here. The problem can be related to nginx, nginx received a http traffic on 10001 in access log does not mean that if forwards exactly the same original http request. Probably some configuration needs to be changed there. You should take a look in

Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase

2020-04-23 Thread Hua Zhang
Best Tomcat maintainers, I would like to report the following warning message. When redeploy a web application, there will be a warning message like this: *WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by org.apache.catalina.loader.WebappClas

Re: RewriteValve does not work on HTTPS

2020-02-14 Thread Hua Zhang
Thank you for the information and fix, Mark. On Fri, Feb 7, 2020 at 12:31 AM Mark Thomas wrote: > On 06/02/2020 23:00, Mark Thomas wrote: > > The issue appears to be that the following RewriteCond does not match > > when the request is served over HTTP/2 (with TLS) but it does if the > > request

Re: RewriteValve does not work on HTTPS

2020-02-06 Thread Hua Zhang
at 2:56 PM Hua Zhang wrote: > > > Thank you for the response. I am finally able to confirm the issue. > > > > When I put the following line in comment, everything works fine. I mean > as > > expected. > > > > ** > > > > > > If the above

Re: RewriteValve does not work on HTTPS

2020-02-06 Thread Hua Zhang
Best regards, Hua On Wed, Feb 5, 2020 at 2:15 PM Felix Schumacher < felix.schumac...@internetallee.de> wrote: > Am 04.02.2020 22:16, schrieb Hua Zhang: > > What I mean with word 'works' is: the RewriteRule has been executed. > > > > That is not the case by

Re: RewriteValve does not work on HTTPS

2020-02-04 Thread Hua Zhang
What I mean with word 'works' is: the RewriteRule has been executed. That is not the case by HTTPS. The rule has not been executed while the RewriteCond is fulfilled. Olaf Kock 于 2020年2月4日周二 下午9:06写道: > > On 04.02.20 20:31, Hua Zhang wrote: > > Best tomcat team, &

RewriteValve does not work on HTTPS

2020-02-04 Thread Hua Zhang
Best tomcat team, Hereby I have a question about an issue I found by using RewriteValve on tomcat 9.30 The rewrite.config is very simple: *RewriteCond %{HTTP_HOST} =youkoop.com RewriteRule ^.*$ https://www.youkoop.com [R=301,L]* All I want is just