Commit | Line | Data |
---|---|---|
3548b65c CE |
1 | <VirtualHost *:80> |
2 | ServerAdmin webmaster@localhost | |
3 | ||
4 | DocumentRoot /var/www | |
5 | <Directory /> | |
6 | Options FollowSymLinks | |
7 | AllowOverride None | |
8 | </Directory> | |
9 | <Directory /var/www/> | |
10 | Options Indexes FollowSymLinks MultiViews | |
11 | AllowOverride None | |
12 | Order allow,deny | |
13 | allow from all | |
14 | </Directory> | |
15 | ||
16 | ErrorLog ${APACHE_LOG_DIR}/error.log | |
17 | ||
18 | # Possible values include: debug, info, notice, warn, error, crit, | |
19 | # alert, emerg. | |
20 | LogLevel warn | |
21 | ||
22 | CustomLog ${APACHE_LOG_DIR}/access.log combined | |
23 | </VirtualHost> | |
24 | ||
25 | <VirtualHost *:443> | |
26 | SSLEngine on | |
27 | SSLCertificateFile /etc/hcoop-ssl/hcoop.pem | |
28 | ||
29 | ServerAdmin webmaster@localhost | |
30 | ||
31 | DocumentRoot /var/www | |
32 | <Directory /> | |
33 | Options FollowSymLinks | |
34 | AllowOverride None | |
35 | </Directory> | |
36 | <Directory /var/www/> | |
37 | Options Indexes FollowSymLinks MultiViews | |
38 | AllowOverride None | |
39 | Order allow,deny | |
40 | allow from all | |
41 | </Directory> | |
42 | ||
43 | # HCoop members can check server status, but only over SSL | |
44 | <Location /server-status> | |
45 | SetHandler server-status | |
46 | AuthType kerberos | |
47 | KrbServiceName apache2 | |
48 | Krb5Keytab /etc/keytabs/service/apache | |
49 | KrbMethodNegotiate on | |
50 | KrbMethodK5Passwd on | |
51 | KrbVerifyKDC on | |
52 | KrbAuthRealms HCOOP.NET | |
53 | KrbSaveCredentials off | |
54 | AuthName "Server Status (HCoop login)" | |
55 | Require valid-user | |
56 | </Location> | |
57 | ||
58 | ErrorLog ${APACHE_LOG_DIR}/error.log | |
59 | ||
60 | # Possible values include: debug, info, notice, warn, error, crit, | |
61 | # alert, emerg. | |
62 | LogLevel warn | |
63 | ||
64 | CustomLog ${APACHE_LOG_DIR}/access.log combined | |
65 | </VirtualHost> |