ansible/roles/ask/files/askbot.conf
Patrick Uiterwijk 7da6565a64 Move the media directories to gluster
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-03-17 12:01:06 +00:00

43 lines
1.2 KiB
Text

LoadModule deflate_module modules/mod_deflate.so
# If we don't do this ourselves, the askbot wsgi app will do it incorrectly
# it seems that it doesn't evaluate the X-Forwarded-For header appropriately.
#RedirectMatch ^/$ https://ask.stg.fedoraproject.org/questions/
#The below needs to be apache writable
Alias /m/ /var/www/html/askbot/static/
Alias /admin/media/ /usr/lib/python2.6/site-packages/django/contrib/admin/media/
<Directory /usr/lib/python2.6/site-packages/askbot/skins>
Order deny,allow
Allow from all
</Directory>
WSGIDaemonProcess askbot user=apache group=apache maximum-requests=1000 display-name=askbot processes=6 threads=1 shutdown-timeout=10 python-path=/etc/askbot/sites/ask
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off
WSGIPythonOptimize 1
WSGIScriptAlias / /usr/sbin/askbot.wsgi
ExpiresActive On
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
<Location />
SetOutputFilter DEFLATE
WSGIProcessGroup askbot
Order deny,allow
Allow from all
</Location>
Alias /upfiles/ /srv/askbot-uploaded/
<Directory /srv/askbot-uploaded>
Order deny,allow
Allow from all
</Directory>