summaryrefslogtreecommitdiff
path: root/sample-apache2.conf
blob: 5bd6e7e71af2a781f796ada011cc55c224b2e2ec (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
# sample apache(2) configuration for patch-tracking system

#
# In this example, the site is served directly from a dedicated virtualhost
#

# static content, such as images, css, etc
#Alias /static /home/seanius/patch-tracker/static
# a custom error page
#ErrorDocument 500 /static/500.html
# all other requests go through a central handler
#WSGIScriptAlias / /home/seanius/patch-tracker/pagehandler.py
#<Location />
#  WSGIProcessGroup patch-tracker
#</Location>

#
# In this example, the site is served relatively from the location
# /patch-tracking.debian.net on the default virtualhost/server
#

# static content, such as images, css, etc
Alias /patch-tracking.debian.net/static /home/seanius/patch-tracker/static
# a custom error page
ErrorDocument 500 /patch-tracking.debian.net/static/500.html
# all other requests go through a central handler
WSGIScriptAlias /patch-tracking.debian.net /home/seanius/patch-tracker/pagehandler.py
<Location /patch-tracking.debian.net>
  WSGIProcessGroup patch-tracker
</Location>


# and finally: an optional (highly recommend) config to run as a dedicated user
WSGIDaemonProcess patch-tracker user=patch-tracker group=patch-tracker processes=2 threads=10 maximum-requests=1000 umask=0022 display-name=patch-tracker