Line | |
---|
1 | <VirtualHost *:80> |
---|
2 | ServerName owncloud |
---|
3 | ServerAdmin owcloud |
---|
4 | DocumentRoot /var/www/owncloud/ |
---|
5 | |
---|
6 | <Directory /var/www/owncloud> |
---|
7 | Options +FollowSymLinks |
---|
8 | AllowOverride All |
---|
9 | Require all granted |
---|
10 | |
---|
11 | <IfModule mod_dav.c> |
---|
12 | Dav off |
---|
13 | </IfModule> |
---|
14 | </Directory> |
---|
15 | |
---|
16 | ErrorLog ${APACHE_LOG_DIR}/error.log |
---|
17 | LogLevel warn |
---|
18 | CustomLog ${APACHE_LOG_DIR}/access.log combined |
---|
19 | ServerSignature Off |
---|
20 | </VirtualHost> |
---|
21 | |
---|
22 | |
---|
23 | <IfModule mod_ssl.c> |
---|
24 | <VirtualHost _default_:443> |
---|
25 | ServerName owncloud |
---|
26 | ServerAdmin owncloud |
---|
27 | DocumentRoot /var/www/owncloud/ |
---|
28 | |
---|
29 | <IfModule mod_headers.c> |
---|
30 | Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" |
---|
31 | </IfModule> |
---|
32 | |
---|
33 | <Directory /var/www/owncloud> |
---|
34 | Options +FollowSymLinks |
---|
35 | AllowOverride All |
---|
36 | Require all granted |
---|
37 | |
---|
38 | <IfModule mod_dav.c> |
---|
39 | Dav off |
---|
40 | </IfModule> |
---|
41 | </Directory> |
---|
42 | ErrorLog ${APACHE_LOG_DIR}/error.log |
---|
43 | CustomLog ${APACHE_LOG_DIR}/access.log combined |
---|
44 | |
---|
45 | SSLEngine on |
---|
46 | SSLCertificateFile /etc/n4d/cert/n4dcert.pem |
---|
47 | SSLCertificateKeyFile /etc/n4d/cert/n4dkey.pem |
---|
48 | |
---|
49 | </VirtualHost> |
---|
50 | </IfModule> |
---|
Note: See
TracBrowser
for help on using the repository browser.