Skip to content

Commit c8c82f3

Browse files
updated config to new version
1 parent 7077cfd commit c8c82f3

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

conf/thesispool.conf

+34-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
11
<VirtualHost *:80>
2-
ServerAdmin [email protected]
3-
ServerName aphrodite.informatik.hs-mannheim.de
42

5-
# if not specified, the global error log is used
6-
ErrorLog /var/log/apache2/thesispool-error_log
7-
CustomLog /var/log/apache2/thesispool-access_log combined
3+
ServerAdmin webmaster@localhost
4+
DocumentRoot /var/www/thesispool
5+
ServerName # insert server name here
86

9-
# don't loose time with IP address lookups
10-
HostnameLookups Off
7+
ErrorLog ${APACHE_LOG_DIR}/error.log
8+
CustomLog ${APACHE_LOG_DIR}/access.log combined
119

12-
# needed for named virtual hosts
13-
UseCanonicalName Off
10+
<Directory /tmp/thesispool>
11+
Require all granted
12+
</Directory>
1413

15-
# configures the footer on server-generated documents
16-
ServerSignature Off
14+
<Directory /var/www/thesispool/thesispool>
15+
<Files wsgi.py>
16+
Require all granted
17+
</Files>
18+
</Directory>
19+
20+
#serve static files to apache
21+
Alias /static /var/www/thesispool/static
22+
23+
<Directory /var/www/thesispool/static>
24+
Require all granted
25+
</Directory>
26+
27+
#Enable Xsendfile
28+
XSendFile On
29+
XSendFilePath /tmp/thesispool
30+
31+
# in case of one django application, designate this webserver as the only webserver used
32+
WSGIScriptAlias / /var/www/thesispool/thesispool/wsgi.py
33+
WSGIPythonPath /var/www/thesispool
34+
WSGIApplicationGroup %{GLOBAL}
35+
36+
# in case of multiple django applications on the webserver, use this configuration
37+
WSGIDaemonProcess thesispool python-path=/var/www/thesispool
38+
WSGIProcessGroup thesispool
39+
WSGIScriptAlias / /var/www/thesispool/thesispool/wsgi.py
1740

18-
Redirect permanent / https://aphrodite.informatik.hs-mannheim.de/
1941
</VirtualHost>

0 commit comments

Comments
 (0)