mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-14 05:50:18 +00:00
60 lines
2.0 KiB
ApacheConf
60 lines
2.0 KiB
ApacheConf
AddHandler php7-script .php
|
|
AddType text/html .php
|
|
ServerName davical.example
|
|
|
|
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>
|