Tomcat只驯服JSP – Apache代理不能按预期工作
我已经给出了包含.jsp文件的PHP项目的一些源代码。 我可以像在我的Mac上设置的XAMPP那样运行它,但是我正努力在家中的Ubuntu安装上实现相同的function。 我需要的是能够将.jsp文件放在我的Apache服务器根目录(/ var / www / html /)中,让Apache使用Tomcat进行任何必要的连接来parsing.jsp文件,并让Apache处理所有其他事情。 我不想把我的.jsp文件或其他任何东西放在Tomcat服务器根目录下,我只想让Tomcatparsing我的Apache服务器根目录中的.jsp文件。 我已经阅读了几篇关于Stack Exchange的文章和问题,并已经实现了以下function:Apache提供了localhost/something/something.jsp (位于/var/www/html/something/something.jsp代码被送到客户端unparsed,而导航到localhost/something/something.php (位于something.jsp旁边)显示默认的“It works!”。 Tomcat的登陆页面。 这不是我想要的。 这是我设置了代理的000-default.conf文件: <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName […]