蓝色站点配置是主程序配置信息,绿色是社区附件配置,域名及路径请自行定义!
<VirtualHost *:80>
JkMount /*. ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
RewriteEngine On
RewriteRule ^/club/userTop-views.html$ /club/userTop.jsp?orderBy=9 [PT,L]
RewriteRule ^/club/userTop-score.html$ /club/userTop.jsp?orderBy=4 [PT,L]
RewriteRule ^/club/userTop-money.html$ /club/userTop.jsp?orderBy=6 [PT,L]
RewriteRule ^/index-([0-9]*).html$ /index.jsp?forumId=$1 [PT,L]
RewriteRule ^/club/f([0-9]*)b([0-9]*)l([0-9]*)fp([0-9]*).html$ /club/forum.jsp?forumId=$1&better=$2&labelId=$3&fpage=$4 [PT,L]
RewriteRule ^/club/f([0-9]*)b([0-9]*)l([0-9]*)fp([0-9]*)t([0-9]*)p([0-9]*).html$ /club/thread.jsp?forumId=$1&better=$2&labelId=$3&fpage=$4&topicId=$5&page=$6 [PT,L]
RewriteRule ^/club/f([0-9]*)b([0-9]*)l([0-9]*)fp([0-9]*)r([0-9]*)p([0-9]*).html$ /club/thread.jsp?forumId=$1&better=$2&labelId=$3&fpage=$4&replyId=$5&page=$6 [PT,L]
RewriteRule ^/club/f([0-9]*)b([0-9]*)l([0-9]*)fp([0-9]*)t([0-9]*)p([0-9]*)txt.html$ /club/threadtxt.jsp?forumId=$1&better=$2&labelId=$3&fpage=$4&topicId=$5&page=$6 [PT,L]
RewriteRule ^/club/u([0-9]*).html$ /club/user.jsp?userId=$1 [PT,L]
RewriteRule ^/music/s([0-9]*).html$ /music/song.jsp?songId=$1 [PT,L]
RewriteRule ^/music/s([0-9]*)p([0-9]*).html$ /music/song.jsp?songId=$1&bpage=$2 [PT,L]
#RewriteLog e:\\1.log
#RewriteLogLevel 2
ServerAdmin gamvan@gmail.com
DocumentRoot "d:\web\www.yeqiangwei.com"
ServerName demo.yeqiangwei.com
#ErrorLog logs/error.log
#CustomLog logs/access.log common
</VirtualHost>
蓝色部分为数据库连接池配置
<Host name="www.yeqiangwei.com" appBase="webapps" unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" >
<Context path="" docBase="D:\web\www.yeqiangwei.com" reloadable="false">
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="JNDI/YQW_club" auth="Container" type="javax.sql.DataSource"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://127.0.0.1:1433;DatabaseName=YQW_club"
username="sa" password="123" maxActive="0" maxIdle="20"
maxWait="-1"/>
</Context>
</Host>