ServerName localhost #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # the wsgi process will run with the user & group specified below, # so make sure that the files and directories you want to serve # are accessible with that user & group combination # please also adjust the python-path or remove it to use the default WSGIDaemonProcess mdsrv user=www-data group=www-data threads=5 python-path=/path/to/python/lib/site-packages WSGIScriptAlias /mdsrv /var/www/mdsrv/mdsrv.wsgi WSGIProcessGroup mdsrv WSGIApplicationGroup %{GLOBAL} WSGIScriptReloading On WSGIPassAuthorization On Order deny,allow Allow from all