X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/e236585868829946444ac537adbbf481782ecb8f..a7d807af1096c152baf5c32f4f4b3f1a26ea2c76:/cas.vhost.template?ds=sidebyside diff --git a/cas.vhost.template b/cas.vhost.template new file mode 100644 index 0000000..d951258 --- /dev/null +++ b/cas.vhost.template @@ -0,0 +1,51 @@ + + ServerName $DOMAIN + ServerAlias $DOMAIN_ALIASES + + ServerAdmin $ADMIN_EMAIL + + Alias /robots.txt $MEDIA_ROOT/static/robots.txt + Alias /favicon.ico $MEDIA_ROOT/static/favicon.ico + + Alias /media/ $MEDIA_ROOT + + # + # Logs + LogLevel info + + # + # WSGI configuration follows + # + + WSGIDaemonProcess $PROJECT_NAME processes=2 threads=1 user=$WSGI_USER group=$WSGI_USER display-name=%{GROUP} + WSGIProcessGroup $PROJECT_NAME + WSGIScriptAlias / $WSGI_TARGET + + + Order allow,deny + Allow from all + + + + # Insert filter + SetOutputFilter DEFLATE + + # Don't compress images + SetEnvIfNoCase Request_URI \ + \.(?:xsl|xml|json|gif|jpe?g|png)$ no-gzip dont-vary + + + + Order allow,deny + Allow from all + + + # + # Header unset ETag + # FileETag None + # ExpiresActive On + # ExpiresDefault "now plus 1 year" + # + + + \ No newline at end of file