Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 domain.com/myapp/ 等子文件夹中有一个现有的 Web 应用程序。
我希望用运行它的独立服务器的 CherryPy 应用程序替换它,同时不影响通过 Apache 在同一域上运行的其他 Web 应用程序。
如何在 LAMP 堆栈上执行此操作?
我可以将文件夹符号链接到 CherryPy 根目录等吗?
假设您domain.com由单个 Apache 实例提供服务,您可以为您的独立 CherryPy 应用程序配置 Proxy/ReverseProxy 对。它应该是这样的:
domain.com
ProxyPass /myapp http://localhost:8080/myapp ProxyPassReverse /myapp http://localhost:8080/myapp
假设您的myapp服务器在 localhost 的 8080 端口上运行。
myapp