X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ee01d50d05b7d72dd372e8f3a0c78b9da6c23b38..f7e3ba3851d4ec6e3decaab0d568e492726224dc:/platforma/config/platforma.vhost.template diff --git a/platforma/config/platforma.vhost.template b/platforma/config/platforma.vhost.template new file mode 100644 index 00000000..7d445573 --- /dev/null +++ b/platforma/config/platforma.vhost.template @@ -0,0 +1,38 @@ + + ServerName %(project_name)s.example.com + ServerAdmin admin@example.com + + WSGIDaemonProcess %(project_name)s user=%(user)s group=%(user)s processes=2 threads=15 display-name=%%{GROUP} python-path=%(path)s/lib/python2.5/site-packages + WSGIProcessGroup %(project_name)s + + WSGIScriptAlias / %(path)s/%(project_name)s.wsgi + + Order allow,deny + allow from all + + + Alias /media %(path)s/media + + Options Indexes + Order allow,deny + Allow from all + + + Alias /admin-media %(path)s/admin-media + + Options Indexes + Order allow,deny + Allow from all + + + Alias /static %(path)s/releases/current/%(project_name)s/static + + Options Indexes + Order allow,deny + Allow from all + + + LogLevel warn + ErrorLog /var/log/apache2/error.log + CustomLog /var/log/apache2/access.log combined +