因為有很多漢字需要編碼所以選擇gbk
============================================================================
URIEncoding=
/etc/profile
=============================================================================
export PATH
export JAVA_HOME=/usr/lib/jvm/java
export CLASSPATH=
umask
export APACHE_RUN_USER=www
export APACHE_RUN_GROUP=www
export APACHE_PID_FILE=/var/run/apache
server
==============================================================================
<Host name=
unpackWARs=
xmlValidation=
<Alias>**</Alias>
<Context path=
debug=
</Context>
</Host>
sites
=================================================================================
<VirtlHost *:
ServerName www
ServerAlias *
ServerAdmin webmaster@localhost
DocumentRoot /opt/sites/**
<Directory /opt/sites/**>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow
allow from all
</Directory>
ScriptAlias /cgi
<Directory
AllowOverride None
Options +ExecCGI
Order allow
Allow from all
</Directory>
ErrorLog /var/log/apache
# Possible values include: debug
# alert
LogLevel warn
CustomLog /var/log/apache
Alias /doc/
<Directory
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny
Deny from all
Allow from
</Directory>
# Alias /examples
# <Directory
# Options Indexes MultiViews FollowSymLinks
# AllowOverride None
# Order deny
# Allow from all
# </Directory>
# #禁止訪問WEB
# <Directory
# Order allow
# </Directory>
JkMount /*
JkMount /*
JkMount /*/servlet/* ajp
JKMount /*
</VirtualHost>
=================================================================================
# Sample mod_jk configuration
# for Apache
#
# for all commands/options available see the manual
# provided in libapache
# The location where mod_jk will find the workers definitions
JkWorkersFile /etc/libapache
# The location where mod_jk is going to place its log file
JkLogFile /var/log/apache
# The log level:
#
#
#
#
#
JkLogLevel info
# Assign specific URLs to Tomcat
# JkMount directive is: JkMount [URL prefix] [Worker name]
# send all requests ending in
JkMount /*
# send all requests ending /servlet to ajp
JkMount /*/servlet/ ajp
# JkUnmount directive acts as an opposite to JkMount and blocks access
# to a particular URL
# particular content types from mounted context
# do not send requests ending with
#JkUnMount /servlet/*
# JkMount / JkUnMount directives can also be used inside <VirtualHost>
# sections of your file
=================================================================================
workers
#Defining a worker named worker
worker
# Set properties for worker
worker
worker
worker
worker
worker
worker
worker
worker
~
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26600.html