2012-06-03 18:19:28 +00:00
|
|
|
# This is a sample configuration to setup a dedicated Apache vhost for WebDAV.
|
|
|
|
#
|
|
|
|
# The main thing that should be configured is the servername, and the path to
|
|
|
|
# your SabreDAV installation (DocumentRoot).
|
|
|
|
#
|
|
|
|
# This configuration assumed mod_php5 is used, as it sets a few default php
|
|
|
|
# settings as well.
|
|
|
|
<VirtualHost *:*>
|
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
# Don't forget to change the server name
|
|
|
|
# ServerName dav.example.org
|
2012-06-03 18:19:28 +00:00
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
# The DocumentRoot is also required
|
2012-06-03 18:19:28 +00:00
|
|
|
# DocumentRoot /home/sabredav/
|
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
RewriteEngine On
|
|
|
|
# This makes every request go to server.php
|
|
|
|
RewriteRule ^/(.*)$ /server.php [L]
|
2012-06-03 18:19:28 +00:00
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
# Output buffering needs to be off, to prevent high memory usage
|
|
|
|
php_flag output_buffering off
|
2012-06-03 18:19:28 +00:00
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
# This is also to prevent high memory usage
|
|
|
|
php_flag always_populate_raw_post_data off
|
2012-06-03 18:19:28 +00:00
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
# This is almost a given, but magic quotes is *still* on on some
|
|
|
|
# linux distributions
|
|
|
|
php_flag magic_quotes_gpc off
|
2012-06-03 18:19:28 +00:00
|
|
|
|
2012-07-08 17:12:58 +00:00
|
|
|
# SabreDAV is not compatible with mbstring function overloading
|
|
|
|
php_flag mbstring.func_overload off
|
2012-06-03 18:19:28 +00:00
|
|
|
|
|
|
|
</VirtualHost *:*>
|