在将apache转发到8080端口时遇到问题


Having trouble forwarding apache to port 8080

嘿,伙计们,我的设置有点问题,我想去。

我有tomcat运行在8080和apache2运行在80上,我有点失落,我如何能让apache转发到tomcat的特定文件。我正在设置webgoat作为我的apache主页上的链接

,

127.0.0.1 -> Goes to homepage
Homepage has links to webgoat at 127.0.0.1:8080/WebGoat/attack

我正试图将此设置为自己的家庭渗透测试服务器,我想尝试添加尽可能多的功能,因为php与tomcat一起工作有点…Out of wack,我宁愿php运行与apache2,然后链接到tomcat为我的java类型的文件。

谢谢。编辑:是的,我以前看过这里的其他问题,似乎它们与我的问题不相关。而这些都是非常古老的。

在apache上创建一个.htaccess文件,并添加:

# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com:8080/newdirectory/newfile.html