如何解决apache modproxy与nodejs
我有一个在https://laravel.com/docs/8.x/mail#sending-mail上运行的应用程序“ flogo”(nodejs)
我尝试在同一主机上使用apache托管它,并在http://127.0.0.1:3304上使用modproxy。后续的页面请求不会转到'/ flogo',而是转到'/',那么我应该在下面的VirtualHost配置中更改什么?
<VirtualHost *:80>
ServerName dev.apigw.org # This is mapped to localhost in hosts file.
ProxyRequests Off
ProxyVia Full
ProxyPreserveHost On
<Proxy * >
Require all granted
</Proxy>
<Location /flogo>
ProxyPass http://127.0.0.1:3304/
ProxyPassReverse http://127.0.0.1:3304/
RewriteEngine On
#RewriteRule /(.*) http://127.0.0.1:3304/$1 # commented out this line,this is not working.
</Location>
ErrorLog "logs/flogo-error.log"
CustomLog "logs/flogo-access.log" combined
</VirtualHost>
第一个请求将发送到/ flogo
随后的请求(例如“ /main.js”)必须转到“ /flogo/main.js”
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。