Saturday, December 04, 2004

Setting up java tomcat on linux VI - Configure APACHE SSL

Configure Apache/SSL

mkdir /usr/local/htdocs/secure
mkdir /usr/local/htdocs/secure/myhost.mydomain
#Now make changes in ssl.conf
#Look for similar lines and make sure it looks like this:

# General setup for the virtual host
DocumentRoot '/usr/local/htdocs/secure/myhost'
ServerName myhost.mydomain:443
ServerAdmin me@myhost.mydomain
ErrorLog logs/error_log
TransferLog logs/access_log

#Redirect / https://myhost.mydomain/mywebapp

# Static files
Alias /mywebapp "/usr/local/tomcat/webapps/mywebapp"



Options Indexes FollowSymLinks
DirectoryIndex index.jsp


# Deny direct access to WEB-INF and META-INF

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /mywebapp/*.do ajp13
JkMount /mywebapp/*.jsp ajp13

JkMount /mywebapp ajp13
JkMount /mywebapp/* ajp13

No comments:

Post a Comment