This repository has been archived by the owner on Feb 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsample.labgeeks.apache2.conf
105 lines (84 loc) · 2.75 KB
/
sample.labgeeks.apache2.conf
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<Virtualhost *:80>
ServerName intranet-dev.eplt.washington.edu
ServerAdmin [email protected]
KeepAlive Off
RewriteEngine On
RewriteRule ^/(admin.*) https://%{SERVER_NAME}/$1 [L,R]
DocumentRoot /var/django/labgeeksrpg
<Directory /var/django/labgeeksrpg>
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /static/ /var/django/labgeeksrpg/templates/static/
Alias /media_admin/ "/usr/local/lib/python2.6/dist-packages/Django-1.2.1-py2.6.egg/django/contrib/admin/media/"
WSGIDaemonProcess labgeeks user=www-data group=www-data processes=2 threads=5
WSGIProcessGroup labgeeks
AddHandler wsgi-script .wsgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !^/media_admin/(.*)$
RewriteCond %{REQUEST_FILENAME} !^/static/(.*)$
RewriteRule ^(.*)$ /labgeeks.wsgi/$1 [QSA,L]
<LocationMatch ^/login.*$>
AuthType UWNetID
require valid-user
PubcookieAppID "labgeeks"
</LocationMatch>
<LocationMatch ^/admin.*$>
AuthType UWNetID
require valid-user
PubcookieAppID "labgeeks"
</LocationMatch>
<LocationMatch ^/logout.*$>
AuthType UWNetID
require valid-user
PubcookieEndSession clearLogin
</LocationMatch>
<Location /PubCookie.reply>
SetHandler pubcookie-post-reply
</Location>
</Virtualhost>
<IfModule mod_ssl.c>
<Virtualhost *:443>
ServerName intranet-dev.eplt.washington.edu
ServerAdmin [email protected]
SSLEngine on
SSLCertificateFile /etc/ssl/certs/intranet-dev.pem
SSLCertificateKeyFile /etc/ssl/private/intranet-dev.key
DocumentRoot /var/django/labgeeksrpg
<Directory /var/django/labgeeksrpg>
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /static/ /var/django/labgeeksrpg/templates/static/
Alias /media_admin/ "/usr/local/lib/python2.6/dist-packages/Django-1.2.1-py2.6.egg/django/contrib/admin/media/"
WSGIDaemonProcess labgeeks-ssl user=www-data group=www-data processes=2 threads=5
WSGIProcessGroup labgeeks-ssl
AddHandler wsgi-script .wsgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !^/static/(.*)$
RewriteCond %{REQUEST_FILENAME} !^/media/(.*)$
RewriteRule ^(.*)$ /labgeeks.wsgi/$1 [QSA,L]
<LocationMatch ^/login.*$>
AuthType UWNetID
require valid-user
PubcookieAppID "labgeeks"
</LocationMatch>
<LocationMatch ^/admin.*$>
AuthType UWNetID
require valid-user
PubcookieAppID "labgeeks"
</LocationMatch>
<LocationMatch ^/logout.*$>
AuthType UWNetID
require valid-user
PubcookieEndSession clearLogin
</LocationMatch>
<Location /PubCookie.reply>
SetHandler pubcookie-post-reply
</Location>
</Virtualhost>
</IfModule>