Handling wildcard domains in Tomcat 8.0
Greetings, I have observed that with the default configuration where the name is 'localhost', Tomcat will change the Host and X-Forwarded-Host headers to the IP address of the local machine. For my use case, this is highly undesirable behavior, because the hostname is meaningful to my application (but one application needs to handle all possible hosts). I've used the entry to convince it not to change the Host headers for one FQDN; however, I see that wildcard support in doesn't exist prior to Tomcat 8.5. As I'm using a hosted service which provides Tomcat 8.0, I'm trying to find a workaround for this problem in Tomcat 8 if I can. Is there any way to have Tomcat 8.0 have a single virtual host handle all of a wildcard domain, or, barring that, is there a way to get it to pass through the Host header, unchanged, to the default Host (effectively directing ALL traffic at the default Host, unchanged, regardless).
Re: ELContext no longer available to tagfiles
> Exactly. An ELContext is being created so that listener should fire. Cool, thanks! -- Mike Strauch Lead Software Engineer, Hannon Hill w. www.hannonhill.com e mike.stra...@hannonhill.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to create a redirect?
On Fri, Mar 3, 2017 at 7:58 AM, JR McVickerwrote: > When I go to https://webadvisor.cornerstone.edu my page does not load. If > I take out https and replace it with http the page loads and it uses https. And it's using a non-standard port: https://webadvisor.cornerstone.edu:8443/WAPROD/WebAdvisor?TYPE=M=CORE-WBMAIN=9075473998 A plain "https://whatever/; URL requires that your SSL server use port 443 (natively, via proxy, iptables, etc.) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Valley or remote - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ELContext no longer available to tagfiles
On 3 March 2017 18:08:26 GMT+00:00, Mike Strauchwrote: >>> The former solution looks possible and - based on a fairly quick >review >>> of the specs - should be happening anyway. > >Just wanted to clarify here. Are you saying that it is correct to >assume that each tagfile invocation should be accompanied by a >ElContextListener.contextCreated() call? Exactly. An ELContext is being created so that listener should fire. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ELContext no longer available to tagfiles
>> The former solution looks possible and - based on a fairly quick review >> of the specs - should be happening anyway. Just wanted to clarify here. Are you saying that it is correct to assume that each tagfile invocation should be accompanied by a ElContextListener.contextCreated() call? or would there be some other event handler we’d have to hook into for ElContext’s used by tagfiles? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to create a redirect?
On 03.03.2017 16:58, JR McVicker wrote: Good morning. I am trying to setup a redirect using Apache Tomcat but I have not located any clear directions on how to set one up. When I go to https://webadvisor.cornerstone.edu my page does not load. Can you be a bit more specific ? what /does/ happen in that case ? If I take out https and replace it with http the page loads and it uses https. That would tend to indicate that there is already some form of redirect happening. Suggestion : use a browser with a plugin/add-on allowing you to trace and follow the real exchanges between browser and webserver (even the ones you don't normally see). In Firefox, the Web Developer Extension provides a "Network Inspector" that may be useful. For older IE, there exists a "Fiddler2" extension. Google Chrome has it built-in ("More tools"). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to create a redirect?
Good morning. I am trying to setup a redirect using Apache Tomcat but I have not located any clear directions on how to set one up. When I go to https://webadvisor.cornerstone.edu my page does not load. If I take out https and replace it with http the page loads and it uses https. -- JR McVicker Infrastructure Engineer|Information Technology Cornerstone University 1001 E. Beltline Ave. NE|Grand Rapids, MI 49525 jr.mcvic...@cornerstone.edu 616.222.1510|616.254.1610
Re: How to enable Native Memory Tracking(NMT) in Tomcat?
On 03/03/17 06:20, Suvendu Sekhar Mondal wrote: > Mark, > I am running Tomcat as a Windows service. Then I suspect that supporting this would require changes in Apache Commons Daemon which is what Tomcat uses to start the Windows service. It would probably be quicker for you to run Tomcat from the command line to get the debugging information you require - assuming you have a one-off need. If you want ongoing monitoring then Daemon changes is would be the better option. Mark > > Thanks! > Suvendu > > On Thu, Mar 2, 2017 at 8:08 PM, Mark Thomaswrote: >> On 02/03/17 10:54, Suvendu Sekhar Mondal wrote: >>> Hello Everyone, >>> >>> I am new here. :) >>> >>> Environment: >>> Java Version: Java HotSpot(TM) 64-Bit Server VM version 25.91-b15 >>> (Java version 1.8.0_91-b15) >>> Tomcat Version: Tomcat 8.0.20 >>> OS Version: Microsoft Windows 8.1 Enterprise >>> >>> I am trying to enable Native Memory Tracking(NMT) to get internal >>> memory usage deatils about Tomcat process which is running on my >>> system. I have added following flags to Tomcat's Java options: >>> -XX:+UnlockDiagnosticVMOptions >>> -XX:NativeMemoryTracking=summary >>> -XX:NativeMemoryTracking=detail >>> >>> After that I restarted Tomcat. When I tried to use "VM.native_memory" >>> command either from JCMD or JMC, I am getting "Native memory tracking >>> is not enabled" message. When I shutdown Tomcat, following message is >>> getting printed on STDERR log: >>> "Java HotSpot(TM) 64-Bit Server VM warning: Native Memory Tracking did >>> not setup properly, using wrong launcher?". >>> >>> I found this article which discussed about NMT problem in custom JVM >>> launcher: >>> https://blogs.oracle.com/poonam/entry/using_nmt_with_custom_jvm >>> >>> My question is, does that stands true for Tomcat also? Is there any >>> other way to enable NMT in Tomcat? >> >> No idea. How did you start Tomcat? >> >> Mark >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org