Skip to content

Instantly share code, notes, and snippets.

@MinCha
Created October 19, 2012 12:43
Show Gist options
  • Save MinCha/3918064 to your computer and use it in GitHub Desktop.
Save MinCha/3918064 to your computer and use it in GitHub Desktop.
Apache Conf For Apache First Tomcat Late
<VirtualHost *:80>
DocumentRoot /home1/www/data
ServerName some.com
SetEnvIf Request_URI "/staged/linecamera" no-jk
Alias /staged/camera "/home1/www/data/camera-admin"
<Location /staged/camera>
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Location>
<IfModule mod_jk.c>
JkMount /* worker1
JkMountCopy On
</IfModule>
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/camera-admin_access_log.%Y%m%d 86400" combined env=!nolog-request
ErrorLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/camera-admin_error_log.%Y%m%d 86400"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment