我已经设置了一个带有以下设置的apache和节点服务器......
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot C:\Apache24\htdocs
Options -Indexes
ErrorDocument 503 /maintenance.html
</VirtualHost>
<VirtualHost *:80>
ServerName localhost:3000
DocumentRoot C:\Apache24\htdocs\mynodeapp
ProxyPreserveHost On
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://localhost:3000
ProxyPassReverse http://localhost:3000
</Location>
我正在努力让php脚本在mynodeapp目录中运行,我得到的错误是......
Cannot GET /mynodeapp/index.php
我想问一下,我是否需要在节点中安装其他模块,或者是否有办法在节点中使用我当前的设置执行php脚本?这样做的正确方法是什么?
对此有任何帮助将不胜感激。