-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache2_rooftop.conf
43 lines (35 loc) · 1.29 KB
/
apache2_rooftop.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
WSGIPythonPath /var/opt/rooftop
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
AliasMatch ^/([^/]*\.css) /var/opt/rooftop/staticfiles/css/$1
#Alias /media/ /var/opt/rooftop/media/
#Alias /files/ /var/www/sopatIntern/webldap/files/
Alias /static/ /var/opt/rooftop/staticfiles/
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
CustomLog ${APACHE_LOG_DIR}/access_rooftop.log combined
WSGIScriptAlias / /var/opt/rooftop/rooftop/wsgi.py
<Directory /var/opt/rooftop/rooftop>
<Files wsgi.py>
#Order deny,allow
#Allow from all # from apache <2.4
# from apache >2.4
Require all granted
</Files>
</Directory>
<Directory /var/opt/rooftop/rooftop/static>
#Order deny,allow
#Allow from all # from apache <2.4
# from apache >2.4
Require all granted
</Directory>
<Directory /var/opt/rooftop/staticfiles>
#Order deny,allow
#Allow from all # from apache <2.4
# from apache >2.4
Require all granted
</Directory>
</VirtualHost>