LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so

ExpiresActive On
#ExpiresDefault "access plus 300 seconds"

ErrorLog logs/fedoracommunity_error_log
CustomLog logs/fedoracommunity_access_log combined

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/x-javascript

# This caching may not necessarily be ideal, or even correct.
# However, it was the only I could get firebug to show me 302's for
# my ToscaWidget resources.
<filesmatch ".(gif|jpe?g|png|css|js)$">
   Header unset Cache-Control
   Header unset Etag
   Header add Cache-Control "max-age=2592000"
   #ExpiresDefault A2592000
</filesmatch>

# we are deploying the packager app that is part of the new Fedora Community
Alias /packages/css /usr/share/fedoracommunity/public/css
Alias /packages/javascript /usr/share/fedoracommunity/public/javascript
Alias /packages/images/icons /var/cache/fedoracommunity/packages/icons
Alias /packages/images /usr/share/fedoracommunity/public/images
Alias /packages/_res /usr/share/fedoracommunity/public/toscawidgets/resources/

# Temporarily disabled until we can figure out how to get the moksha 
# javascript resources pulled in with `python setup.py archive_tw_resources`
#Alias /community/toscawidgets /usr/share/fedoracommunity/public/toscawidgets

WSGIPythonEggs /var/cache/fedoracommunity/.python-eggs
WSGIDaemonProcess fedoracommunity user=apache maximum-requests=50000 display-name=fedoracommunity processes=8 threads=4
WSGISocketPrefix run/wsgi
WSGIRestrictStdout Off
WSGIRestrictSignal Off
WSGIPythonOptimize 1

WSGIScriptAlias /packages /usr/share/fedoracommunity/production/apache/fedoracommunity.wsgi

#<Location /community>
#  NSSOptions +StrictRequire
#  NSSRequireSSL
#  ErrorDocument 403 https://publictest16.fedoraproject.org/community
#</Location>

<Directory /usr/share/fedoracommunity/>
  WSGIProcessGroup fedoracommunity
  Order deny,allow
  Allow from all
</Directory>

