File: apache2_vhost_cgi.conf

package info (click to toggle)
php-sabredav 1.8.12-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 4,928 kB
  • sloc: php: 28,633; sql: 271; python: 221; makefile: 35; xml: 25; sh: 8
file content (21 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 assumes CGI or FastCGI is used.
<VirtualHost *:*>

    # Don't forget to change the server name
    # ServerName dav.example.org

    # The DocumentRoot is also required
    # DocumentRoot /home/sabredav/

    # This makes every request go to server.php. This also makes sure
    # the Authentication information is available. If your server script is
    # not called server.php, be sure to change it.
    RewriteEngine On
    RewriteRule ^/(.*)$ /server.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

</VirtualHost *:*>