Integration with LAMP
Integration with LAMP
请原谅我的愚蠢,因为我刚刚开始使用Yeoman,但我有一个关于将项目添加到脚手架阶段之外并将其与PHP和Apache集成的一般问题。
显然,Node.js服务器不运行PHP脚本,当我尝试从我的Apache(MAMP)服务器打开相同的项目时(我尝试过"/","/app"和"/dist"目录),页面只是挂起并最终超时。我不完全确定为什么? 是否有可能让同一个项目同时在Apache和NodeJS上运行。
一个理想的解决方案是 Node.js 可以运行 PHP,但不确定这是否会发生。
我可能在这里走错了路......
谢谢!
做你想
做的事情的一种方法是使用 node.js 制作反向代理。
您需要在节点.js应用程序中定义一些路由,以便它将(直接)响应客户端请求或根据请求标头(例如 URL 或主机名)将它们通过管道传输到 apache 服务器。
相关文章:
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 指令的模板必须只有一个根元素:With restrict E&替换true
- timeago.js with datatable and PHP
- Ajax and Json with Rails
- errors with Javascript try catch
- how to split a string with ','
- Understanding Javascript scope with "var that = this&qu
- Architecture for CPU intensive tasks with NodeJS & Socke
- How to declare a Map containing certain properties with flow
- 设置'这'在React with Inverse Data Flow中
- Unit-testing multiple use cases with Karma & Mocha.js
- Modify Javascript with C#
- 谷歌地图API v3:Initial View is Fine,but Gray Box with No Map if
- Using jQuery with classes from ES6
- Integration with LAMP