summaryrefslogtreecommitdiffstats
path: root/roles/packages3/web/files/packages-httpd.conf
blob: 6d053546e605c73d7430cdb539ed76f7b61e34fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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>

<Directory /var/cache/fedoracommunity/packages/icons/>
  # If someone tries to access an icon that doesn't exist,
  # then send them to the default icon.  This is used by
  # fedmenu, which will request icons for packages that
  # don't necessarily have them.  The UI will look weird
  # unless those get magically redirected to a nice default.
  ErrorDocument 404 https://apps.fedoraproject.org/packages/images/icons/package_128x128.png
</Directory>