diff options
author | Christian Affolter <c.affolter@stepping-stone.ch> | 2016-10-23 13:25:41 +0200 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2016-11-16 18:49:34 -0500 |
commit | 4c4dd65a7b97bab2fd4fffe39f33f637652d1711 (patch) | |
tree | 641e0b8875ab5009a2572db51100b6e32c6aa58f /www-apps/webdavcgi/files/apache-webdavcgi-1.1-example.conf | |
parent | dev-perl/DateTime-Format-Human-Duration: Initial ebuild (diff) | |
download | gentoo-4c4dd65a7b97bab2fd4fffe39f33f637652d1711.tar.gz gentoo-4c4dd65a7b97bab2fd4fffe39f33f637652d1711.tar.bz2 gentoo-4c4dd65a7b97bab2fd4fffe39f33f637652d1711.zip |
www-apps/webdavcgi: Version bump to 1.1.1
Added new upstream 1.1.1 WebDAV CGI release with the following changes:
* Switched to EAPI 6
* Updated dependencies
* Moved temporary directories from /var/cache to /var/tmp (to make QA happy)
* Pre-create trash and optimizer directory
* Added updated Apache HTTP configuration snipped for version 2.4
* Added updated wedav 1.1 configuration
* Added note for systemd users
Gentoo-Bug: 595060
Diffstat (limited to 'www-apps/webdavcgi/files/apache-webdavcgi-1.1-example.conf')
-rw-r--r-- | www-apps/webdavcgi/files/apache-webdavcgi-1.1-example.conf | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/www-apps/webdavcgi/files/apache-webdavcgi-1.1-example.conf b/www-apps/webdavcgi/files/apache-webdavcgi-1.1-example.conf new file mode 100644 index 000000000000..4ee926fbd7c7 --- /dev/null +++ b/www-apps/webdavcgi/files/apache-webdavcgi-1.1-example.conf @@ -0,0 +1,63 @@ +# Example Apache HTTP server configuration snippet for WebDAV CGI +# +# Add the following lines to the Apache HTTP virtual host which should run +# WebDAV CGI. +# +# WebDAV CGI will be accessible via http://www.example.com/webdav/ and uses +# basic HTTP authentication (by default). For this to work, you need to add all +# valid users to the AuthUserFile with the help of the htpasswd command: +# +# htpasswd -c /etc/webdavcgi-1.1/default/users.htpasswd user1 +# htpasswd /etc/webdavcgi-1.1/default/users.htpasswd user2 +# +# Note, that if you have the UID/GID wrapper enabled (USE=suid), WebDAV CGI will +# switch to the login user after a successful login, thus the users within the +# AuthType need to be present on the system as well. +# +# You probably want to review and change the following settings: +# - /webdavcgi should point to your desired webdavwrapper, which is either +# webdavwrapper, webdavwrapper-afs, webdavwrapper-krb or in case you disabled +# the UID/GID wrapper (USE=-suid), webdav.pl +# +# - The /webdav location +# If you change this location, make sure to reflect the new path within the +# WebDAV CGI configuration (WEBDAVCONF -> $VIRTUAL_BASE) as well. +# +# - The authentication provider and/or AuthUserFile +# +# - The HOMEURL environment variable. After a user logs out, the browser will +# be redirected to this URL. +# +# - The WEBDAVCONF environment variable has to point to your configuration +# +# For further informations and other configuration possibilities consult the +# WebDAV CGI documentation which is located at http://webdavcgi.sourceforge.net +# and the Apache HTTP server documentation at https://httpd.apache.org/docs/ +# + ScriptAlias /webdavcgi "/usr/libexec/webdavcgi-1.1/cgi-bin/webdavwrapper" + ScriptAlias /webdav/logout "/usr/libexec/webdavcgi-1.1/cgi-bin/logout" + + <Location /webdav> + Require all granted + # Disable the line above and enable the two lines below + # if you're still on Apache 2.2 + #Order Allow,Deny + #Allow from all + </Location> + + <Location /webdavcgi> + AuthType Basic + AuthName "WebDAV-CGI" + AuthUserFile /etc/webdavcgi-1.1/default/users.htpasswd + Require valid-user + # Also enable the following two lines if you're still on Apache 2.2 + #Order Allow,Deny + #Allow from all + </Location> + + + RewriteEngine On + + RewriteRule ^/webdav/logout - [L,E=REALM:WebDAV-CGI,E=HOMEURL:/webdav,E=TIMEOUT:5] + + RewriteRule ^/webdav /webdavcgi [PT,L,E=WEBDAVCONF:/etc/webdavcgi-1.1/default/webdav.conf,E=PERLLIB:/usr/share/webdavcgi-1.1/lib/perl,E=LOGOUTURL:/webdav/logout] |