我已成功创建新的子域http://abc.example.com。但是jsp文件无法正常工作,我的意思是java没有被加载,即http://abc.example.com/jsptest.jsp它显示纯文本如下:
测试JSP页面
示例应用程序JSP页面
这是 JSP页面的输出,它是Hello,World应用程序的一部分。 它显示当前请求中的几个有用值 处理。 请求方法:<%= request.getMethod()%> Servlet的 路径:<%= request.getServletPath() %GT;
我在sftp中完成了以下条目://root@example.com/usr/local/jakarta/apache-tomcat-5.5.36/conf/server.xml
<Host name="abc.example.com" appBase="/home/example96/public_html/abc">
<Alias>www.abc.example.com</Alias>
<Context path="" reloadable="true" docBase="/home/example96/public_html/abc" debug="1"/>
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>
</Host>
请注意我的其他子域上的jsp / java在同一服务器/域上正常工作。
答案 0 :(得分:0)
我检查并注意到其他子域名,他们有一个htaccess,其中包含以下文字:
if while ! curl http://192.168.1.2:8080/api/query; do sleep 1; done |
grep -q mypattern; then
echo "success"
fi
现在正在运行的jsp文件。