[英]CherryPy application behind apache, apache serving other applications
What I want to do: 我想做的事:
host/ --> apache
host/app1 --> apache
host/app2 --> apache --> cherrypy
I am totally lost between mod_rewrites, proxies, virtualhosts and locations. 我完全迷失在mod_rewrites,代理,虚拟主机和位置之间。 Don't know how to do it.
不知道该怎么做。 I know how to get:
我知道如何获得:
host/ --> apache --> cherrypy
or even: 甚至:
host/app2 --> apache --> cherrypy
but don't know how to mix everything together Any idea? 但不知道如何将所有内容混合在一起吗?
The reason to do this is because I want to install my app (done with cherrypy) running behind an apache server that has other apps (done in PHP, perl, etc.). 这样做的原因是因为我想在具有其他应用程序(在PHP,perl等中完成)的apache服务器后安装我的应用程序(使用cherrypy完成)。
Create a config file under httpd/conf.d/, that reads: 在httpd / conf.d /下创建一个配置文件,内容为:
ProxyPass /app2 http://localhost/app2
ProxyPassReverse /app2 http://localhost:9091/app2
this is the cherrypy server: 这是cherrypy服务器:
http://localhost:9091
with an application running in /app2. 在/ app2中运行的应用程序。
This is a reverse proxy. 这是反向代理。 When client requests /app2, the request is finally handled as
当客户端请求/ app2时,该请求最终被处理为
http://localhost:9091/app2
and this seems being done without the client being aware of the cherrypy server. 而这似乎是在客户端不知道cherrypy服务器的情况下完成的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.