|
1 | 1 | <VirtualHost *:80>
|
2 |
| - |
3 |
| - ServerName aphrodite.informatik.hs-mannheim.de |
4 | 2 |
|
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 |
8 | 6 |
|
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 |
11 | 9 |
|
12 |
| - # needed for named virtual hosts |
13 |
| - UseCanonicalName Off |
| 10 | + <Directory /tmp/thesispool> |
| 11 | + Require all granted |
| 12 | + </Directory> |
14 | 13 |
|
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 |
17 | 40 |
|
18 |
| - Redirect permanent / https://aphrodite.informatik.hs-mannheim.de/ |
19 | 41 | </VirtualHost>
|
0 commit comments