On 30.03.2013 12:43, Chris Arnold wrote: > Here is the modified virtualhost file: > <VirtualHost *:80> > ServerName share.domain.com > > #RewriteEngine On > #RewriteCond %{REQUEST_URI} !^/share/ > #RewriteCond %{HTTPS} on > #RewriteRule ^/. http://share.domain.com/share/ [P] > JkMount /share|/* worker1
As mentioned I suggest to use "balancer" instead of "worker1" here. > RedirectMatch ^/$ http://share.domain.com/share/ > > ErrorLog /var/log/apache2/domain.com-error_log > CustomLog /var/log/apache2/domain.com-access_log combined > > </VirtualHost> > >> OK, one thing I forgot, sorry: > >> this config uses a load balancer worker which even if there's only one >> Tomcat instance involved allows a bit more of control. For this to work >> you need to replace the name "worker1" in the above JkMount with "balancer": > >> JkMount /share|/* balancer See above. >> Give it a try (with! > > I dont understand the With! part. Is that part of the apache restart command > to force? Me neither, somehow part f the text got deleted. Probably just wanted to say "with the above adjustments"). >> If it doesn't work, increase the JkLogLevel to debug and post the JK log >> file contents (and the Apache error log and access log entries for your >> test requests). > > Well, now apache does not start. Gives this error: > error in reading worker properties from /opt/path to/worker.properties Is the path in the error the correct one? > Configuration failed > Seems it doesn't like something about the worker.properties file. Due to that > i will post the complete workers.properties file (it is writeable): What's in the JK log? The following param doesn't exist in your old version: > # error_escalation_time: seconds, default = recover_time/2 (=30) > # Determines, how fast a detected error should switch from > # local error state to global error state > # Since: 1.2.28 > worker.balancer.error_escalation_time=0 That following port likely is wrong. you need to configure the AJP port of Tomcat, something like 8009 or whataver you have chosen in server.xml. Make sure the AJP port in server.xml is not commented out. > worker.worker1.port=8080 The following param doesn't exist in your old version: > # - socket_connect_timeout: milliseconds, default=0 > # Since: 1.2.27 > worker.template.socket_connect_timeout=5000 The following params don't exist in your old version: > # - ping_mode: Character, default=none > # When should we use cping/cpong connection probing? > # C = directly after establishing a new connection > # P = directly before sending each request > # I = in regular intervals for idle connections > # using the watchdog thread > # A = all of the above > # Since: 1.2.27 > worker.template.ping_mode=A > > # - ping_timeout: milliseconds, default=10000 > # Wait timeout for cpong after cping > # Can be overwritten for modes C and P > # Using connect_timeout and prepost_timeout. > # Since: 1.2.27 > worker.template.ping_timeout=10000 The following param doesn't exist in your old version: > # - reply_timeout: milliseconds, default=0 > # Any pause longer than this timeout during waiting > # for a part of the reply will abort handling the request > # in mod_jk. The request will proceed running in > # Tomcat, but the web server resources will be freed > # and an error is send to the client. > # For individual requests, the timeout can be overwritten > # by the Apache environment variable JK_REPLY_TIMEOUT. > # JK_REPLY_TIMEOUT since: 1.2.27 > worker.template.reply_timeout=300000 Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org