Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
tomcat_administration:start [2022/05/13 15:00] marco.staub |
tomcat_administration:start [2024/04/11 06:55] (aktuell) |
||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ===== Tag 1 ===== | ===== Tag 1 ===== | ||
| - | ==== 1.2 - rc.sh ==== | + | ==== 1.2 - tomcat.sh ==== |
| <code> | <code> | ||
| #!/bin/sh | #!/bin/sh | ||
| Zeile 9: | Zeile 9: | ||
| ### Start Config ### | ### Start Config ### | ||
| - | TOMCAT_VERSION=10.0.20 | + | TOMCAT_VERSION=10.1.20 |
| INSTANCE_NAME=workshop | INSTANCE_NAME=workshop | ||
| Zeile 191: | Zeile 191: | ||
| -Dcom.sun.management.jmxremote.ssl=true \ | -Dcom.sun.management.jmxremote.ssl=true \ | ||
| -Dcom.sun.management.jmxremote.authenticate=true \ | -Dcom.sun.management.jmxremote.authenticate=true \ | ||
| - | -Dcom.sun.management.jmxremote.password.file=${CATALINA_BASE}/conf/jmxremote.password | + | -Dcom.sun.management.jmxremote.access.file=${CATALINA_BASE}/conf/jmxremote.access \ |
| + | -Dcom.sun.management.jmxremote.password.file=${CATALINA_BASE}/conf/jmxremote.password \ | ||
| -Djavax.net.ssl.keyStorePassword=workshop \ | -Djavax.net.ssl.keyStorePassword=workshop \ | ||
| -Djavax.net.ssl.keyStore=${CATALINA_BASE}/conf/keystore.jks \ | -Djavax.net.ssl.keyStore=${CATALINA_BASE}/conf/keystore.jks \ | ||
| Zeile 307: | Zeile 308: | ||
| </code> | </code> | ||
| - | ==== 5.5 - balancer-manager ==== | + | ==== 5.3 - einfacher Proxy ==== |
| + | <code> | ||
| + | <VirtualHost *:80> | ||
| + | ProxyPass /workshop http://localhost:8180/workshop | ||
| + | ProxyPassReverse /workshop http://localhost:8080/workshop | ||
| + | ProxyPassReverse /workshop http://localhost:8180/workshop | ||
| + | ProxyPreserveHost On | ||
| + | </VirtualHost> | ||
| + | </code> | ||
| + | |||
| + | ==== 5.6 - Monitoring ==== | ||
| <code> | <code> | ||
| Zeile 321: | Zeile 332: | ||
| </code> | </code> | ||
| + | <code> | ||
| + | LogFormat "%h %l %u %t \"%r\" %>s %b %{BALANCER_ROUTE_CHANGED}e %{BALANCER_WORKER_ROUTE}e %{BALANCER_SESSION_ROUTE}e %D" proxyextended | ||
| + | CustomLog "logs/proxy_access_log" proxyextended | ||
| + | </code> | ||