我正在使用Apache Tomcat部署應用程序。應用程序需要ProxyPass和ProxyPassReverse進行配置,我已閱讀說明ProxyPass由Apache Server提供服務的文檔。我如何在不使用Apache服務器的情況下使用tomcat進行服務和配置。如何在沒有Apache服務器的情況下配置Apache Tomcat以處理ProxyPass和ProxyPassReverse
我已閱讀下面codeis在Apache服務器的httpd.conf文件配置爲服務PROXYPASS和ProxyPassreverse:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName 127.0.0.1
DocumentRoot /var/www
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /static/ !
ProxyPass/ajp://localhost:8009/
ProxyPassReverse/ajp://localhost:8009/
.
.
.
Alias /static/ "/apache/www/"
</VirtualHost>