- 招聘 : Linux运维
- 论坛徽章:
- 0
|
虚拟主机配置
<VirtualHost *:80>
ServerAdmin admin@test.cn
DocumentRoot "/home/test/www"
ServerName www.test.cn
DirectoryIndex index.htm
ErrorLog logs/test.cn-error_log
CustomLog logs/test.cn-access_log common
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
<Location "/public_html/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
UserDir public_html
</VirtualHost>
这样的配置可以在/test/www/下放jsp文件,执行正常
但是象www.test.cn/~test这样的主页,都不能执行jsp文件.提示
type Status report
message /~test/info.jsp
description The requested resource (/~test/info.jsp) is not available.
请问有办法让UserDir public_html目录下的jsp可以执行吗? |
|