-
Notifications
You must be signed in to change notification settings - Fork 12
/
apache.conf
60 lines (54 loc) · 2.01 KB
/
apache.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ErrorLog "|/usr/bin/logger -t apache -p local2.info"
AddHandler php7-script .php
AddType text/html .php
ServerName ${HOST_NAME}
LoadModule rewrite_module modules/mod_rewrite.so
<VirtualHost *:80 >
DocumentRoot /usr/share/davical/htdocs
DirectoryIndex index.php index.html
Alias /images/ /usr/share/davical/htdocs/images/
<Directory /usr/share/davical/htdocs/>
Require all granted
</Directory>
#Activate RewriteEngine
RewriteEngine On
# Filter all files that do not exist
RewriteCond %{LA-U:REQUEST_FILENAME} !-f
RewriteCond %{LA-U:REQUEST_FILENAME} !-d
# and redirect them to our caldav.php
RewriteRule ^(.*)$ /caldav.php/$1 [NC,L]
php_value include_path /usr/share/awl/inc
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value register_globals 0
php_value error_reporting "E_ALL & ~E_NOTICE"
php_value default_charset "utf-8"
</VirtualHost>
#<VirtualHost *:443 >
# DocumentRoot /usr/share/davical/htdocs
# DirectoryIndex index.php index.html
#
# Alias /images/ /usr/share/davical/htdocs/images/
# <Directory /usr/share/davical/htdocs/>
# Require all granted
# </Directory>
#
# #Activate RewriteEngine
# RewriteEngine On
# # Filter all files that do not exist
# RewriteCond %{LA-U:REQUEST_FILENAME} !-f
# RewriteCond %{LA-U:REQUEST_FILENAME} !-d
# # and redirect them to our caldav.php
# RewriteRule ^(.*)$ /caldav.php/$1 [NC,L]
#
# php_value include_path /usr/share/awl/inc
# php_value magic_quotes_gpc 0
# php_value magic_quotes_runtime 0
# php_value register_globals 0
# php_value error_reporting "E_ALL & ~E_NOTICE"
# php_value default_charset "utf-8"
#
# SSLEngine on
# SSLCertificateFile "/config/ssl/cert.pem"
# SSLCertificateKeyFile "/config/ssl/private.pem"
#</VirtualHost>