Setting up a Plone Proxy (IIS) on Windows
Note: Return to tutorial view.
Problem overview
When your infrastructure is based upon Microsoft, chances are you'll have Microsoft Internet Information Services (IIS) installed and want to run that as the proxy for your Plone site. Bear in mind that the Plone server does not have to be running on the same server, or on Windows at all. As long as IIS can make a HTTP connection it will be able to proxy the site.
This tutorial covers setting up a Plone site to use Enfold Proxy and then setting up Enfold Proxy.
Configuring Plone for the proxy
The configuration of a Plone for Enfold Proxy is exactly the same as for any other proxy. You will need to ensure that your Zope site has a single Virtual Host Monster.
- Go to your Zope instance (normally on port 8080) and ensure you are at the root of your Zope site, not your Plone site. The easy way to check is to ensure that you can see Control Panel in the site listing.
- From the add drop down box in the top right hand corner, select "Virtual Host Monster", the id doesn't matter, it can be anything, so call it "vhm".
That's it. Now install and configure Enfold Proxy.
Further information
Configuring IIS for proxying
Download the Enfold Proxy from Enfold's website.
- Stop IIS.
- Install it on the IIS server. When you install it will ask if you would like to install the proxy into the default web site. If this is the one you'd like to use then check to install it.
- Open the file called eep.ini in your Enfold Proxy installation directory, by default this will be c:\Program Files\Enfold Enterprise Proxy
- Enter a host for each Plone you would like to proxy to for example:
[host YourHost]
lh_root = /
vh_host = localhost:8080
vh_root = Plone - That's it. Access the IIS site in your browser and you will be able to access Plone.
Further configurations
Detailed documentation and troubleshooting is available in the Enfold Proxy documentation.
If there are any problems, the first thing you should do is go to the directory you installed Enfold Proxy into and run eep_check.exe. This will test you configuration and connect to your Plone sites and tell you if it can find any problems. For example here's what happens when I try eep_check.exe when IIS is stopped:
>eep_check.exe
Enfold Proxy (2.5.2.5839) is checking your configuration. Please wait...
Checking site 'default web site' (1)
Error found in host configuration section [u'host YourHost']
The URL (http://localhost:80/) failed to open
The server response was 500: Server Error
The local IIS host failed verification.
Please check IIS is running and that you have specified the correct
web site (execute 'eep_check --help' for options)
Enfold Proxy configuration check failed (1 error)
Other things that you might like to do that are covered in the documentation include:
- having the proxy installed into a site other than the default can be performed using:
eep.exe "--server=Web Site Name"
- turning on and tweaking the caching
- having other parts of your IIS site proxied