]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/examples/webserver/apache2_vhost.conf
Merge remote branch 'friendica/master'
[friendica-addons.git] / dav / SabreDAV / examples / webserver / apache2_vhost.conf
1 # This is a sample configuration to setup a dedicated Apache vhost for WebDAV.
2 #
3 # The main thing that should be configured is the servername, and the path to
4 # your SabreDAV installation (DocumentRoot).
5 #
6 # This configuration assumed mod_php5 is used, as it sets a few default php
7 # settings as well.
8 <VirtualHost *:*>
9
10         # Don't forget to change the server name
11         # ServerName dav.example.org
12
13         # The DocumentRoot is also required
14     # DocumentRoot /home/sabredav/
15
16         RewriteEngine On
17         # This makes every request go to server.php
18         RewriteRule ^/(.*)$ /server.php [L]
19
20         # Output buffering needs to be off, to prevent high memory usage
21         php_flag output_buffering off
22
23         # This is also to prevent high memory usage
24         php_flag always_populate_raw_post_data off
25
26         # This is almost a given, but magic quotes is *still* on on some
27         # linux distributions
28         php_flag magic_quotes_gpc off
29
30         # SabreDAV is not compatible with mbstring function overloading
31         php_flag mbstring.func_overload off
32
33 </VirtualHost *:*>