问题描述
我有一个Plone zinstance OS X服务器10.5设置为通过Apache代理。服务器设置了端口80上的一个虚拟主机,使用代理和放大器; PROXYPASS指令来Plone的zinstance:
I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance:
ProxyPass / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/
ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/
不过,我有一些静态的HTML和PHP的内容,我想通过Plone站点的iframe来显示。我想我需要建立另外一个虚拟主机的不同端口上,则只需指定端口号直列?
However, I have some static HTML and PHP content that I want to display in an iframe via the plone site. I'm thinking I'll need to set up another vhost on a different port, then just specify the port # inline?
推荐答案
设置,将不会被代理,但来自Apache直接投放,这样一个静态的URL:
Set up a static URL that will not be proxied but served from Apache directly, like this:
ProxyPass /static !
ProxyPass / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/
ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/server:80/Plone/VirtualHostRoot/
然后配置/静态来包含静态内容。
Then configure /static to contain your static content.
这篇关于Plone的与Apache代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!