Project home: Original repository at:

Michael Buesch a0bfe0f65d Add exception description 7 years ago
example a0b4bef56a Update CSS sheet 7 years ago
.gitignore b7eb4bf59a Add index.wsgi 12 years ago
Makefile 555bf04ec7 Configure the basic CMS parameters through apache config 12 years ago
README f1a8d87e57 Add post body length restriction 8 years ago
TODO ebbd14dc60 Add TODO 9 years ago
cms-cli bf4d248dc3 cms-cli: Add POST support 8 years ago a0bfe0f65d Add exception description 7 years ago
index.wsgi 7d2481750d Add support for local macros 8 years ago


--- - simple WSGI/Python based CMS script
--- Copyright (c) 2011-2012 Michael Buesch

--- Installing ---

Just run
make install-world DESTDIR=/var/cms OWNER=www-data GROUP=www-data
to install the cms scripts and the example database files.
See "make help" for more options.

--- Configuring Apache httpd ---

Install the Apache WSGI module. On Debian Linux, this is libapache2-mod-wsgi.
Create a new config file /etc/apache2/conf.d/wsgi with content similar to
the following Debian based example:

# Adjust "user" and "group" to your system.
WSGIDaemonProcess wsgi processes=10 threads=1 display-name=apache-wsgi user=www-data group=www-data python-path=/var/cms
WSGIPythonOptimize 1
# /cms is the base URL path to the CMS.
# /var/cms is where index.wsgi, and the db directory live.
# /var/www is the path to the static files.
# Adjust these paths to your setup.
WSGIScriptAlias /cms /var/cms/index.wsgi
SetEnv cms.domain
SetEnv cms.cmsBase /var/cms
SetEnv cms.wwwBase /var/www
SetEnv cms.maxPostContentLength 1048576
SetEnv cms.debug 1

WSGIProcessGroup wsgi
AllowOverride None
Options -ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
Require all granted

# Redirect all 404 to the CMS 404 handler (optional)
ErrorDocument 404 /cms/__nopage/__nogroup.html

Reload Apache httpd after modifying the config.