Tag Info

Hot answers tagged

3

You can do this with <Location /dev> RewriteEngine on RewriteRule ^/dev/(.*) /$1 ProxyPass / http://localhost:8080/ nocanon ProxyPassReverse / http://localhost:8080/ </Location> and so on. That will give you different proxies for the different URLs, and remove the leading /dev, /staging, or /prod from the URLs. But ...


2

Ok, first of all, you can't specify the port for HTTP in your DNS* You want two different hostnames to be handled by two different contexts in to tomcat. This is called virtual hosting. Tomcat supports it, no port forwarding fanciness required. Per Tomcat's documentation, you probably want something like this: <Engine name="Catalina" ...


1

It is not a good idea to have two versions of the slf4j api library in your classpath. You have slf4j-api-1.7.6.jar as well as slf4j-api-1.7.7.jar in it. Also, you should have the corressponding slf4j implementation library in your classpath. Refer to the slf4j documentation to get more details on how to include slf4j in your application.


1

Modified TimP's script--Added deleting very old files, added scan for old compressed files. #!/bin/bash # # TPP 2013-02-21 # RJK 2014-08-14 # # Tomcat apps use a variety of loggers, mostly log4j. # These rotate, conflicting with logrotate, the unix log rotation system. # # Some files eg catalina.out # are rotated to a backup containing a date eg ...


1

You can restart individual Tomcat connector i.e. port restart like 8843 is possible after you change your jssecacert file. mbeanServer.invoke(objectName, "stop", null, null);


1

This sounds rather complicated to me and not the way I would try to run it. In general I try to separate as much as I can environments from each other, running on different servers ideally , but i understand this is not something you can do with a single VPS. You should at least separate tomcat instances, this would reduce the mess and makes everything ...



Only top voted, non community-wiki answers of a minimum length are eligible