Tomcat-subsonic: Difference between revisions
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
== Apache2 with mod_jk == | == Apache2 with mod_jk == | ||
Create file <tt>/etc/apache2/workers.properties</tt> with the following content: | |||
<tt>worker.list=worker1<br> | |||
worker.worker1.type=ajp13<br> | |||
worker.worker1.host=localhost<br> | |||
worker.worker1.port=8009</tt> | |||
Create file <tt>/etc/apache2/mods-available/jk.conf</tt> with the following content: | |||
<tt>JkWorkersFile /etc/apache2/workers.propertiesCreate file /etc/apache2/mods-available/jk.conf with the following content: | |||
JkWorkersFile /etc/apache2/workers.properties<br> | |||
JkShmFile /var/log/apache2/mod_jk.shm<br> | |||
JkLogFile /var/log/apache2/mod_jk.log<br> | |||
JkLogLevel info</tt> | |||
Enable jk conf: | |||
JkShmFile /var/log/apache2/mod_jk.shm | |||
JkLogFile /var/log/apache2/mod_jk.log | |||
JkLogLevel info | |||
Enable jk conf: | |||
Revision as of 13:47, 10 December 2012
Tomcat standalone
To allow listening of Tomcat to privileged ports, set AUTHBIND=yes in /etc/default/tomcat6.
The JKS keystore file needs to reside in /usr/share/tomcat6/.keystore
Subsonic system folder: /usr/share/subsonic/
$CATALINA_HOME = $CATALINA_BASE = /var/lib/tomcat6/
Config: /etc/tomcat6/server.xml
Apache2 with mod_jk
Create file /etc/apache2/workers.properties with the following content:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
Create file /etc/apache2/mods-available/jk.conf with the following content:
JkWorkersFile /etc/apache2/workers.propertiesCreate file /etc/apache2/mods-available/jk.conf with the following content:
JkWorkersFile /etc/apache2/workers.properties
JkShmFile /var/log/apache2/mod_jk.shm
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
Enable jk conf: JkShmFile /var/log/apache2/mod_jk.shm JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info
Enable jk conf: