Understanding the software stack
First, let's review the complex software stack we have created in this chapter.
This is just one of the many scenarios you could deploy within production to handle various types of production environments you may encounter.
Our stack currently looks like this:
In production, it may look like this:
That is to say that in production, you may place a web server like Apache or Nginx in front (on port 80), and then proxy requests to the web server to a web cache like Varnish or Squid, which may then proxy requests down the stack to the Zope 2 instances as needed.
Frontend Apache configuration
In Apache, the proxy configuration typically looks like this (assuming mod_rewrite
and mod_proxy
have been loaded):
RewriteEngine On RewriteRule ^(.*) http://127.0.0.1:8080/VirtualHostBase/http/mysite.com:80/Plone/\ VirtualHostRoot/$1 [P,L]
You will typically find these entries inside a VirtualHost container (but not always).
Frontend Nginx configuration
In Nginx, it typically looks...