Virtualhost, Rewrite, host and webdav

Virtualhost, Rewrite, host and webdav

Wednesday 07 April 2010 12:56:40 pm - 3 replies

Author Message

Hugo Sandoval

Wednesday 07 April 2010 2:05:01 pm

New behaviour:

Modifiying dns and using konqueror:

webdav://dav.domain.com/dav/

Ask for user and password but show index.php file opened by kwrite (embedded in konqueror), even can edit it online!

.·. .·. .·. .·. .·. .·. .·.
http://www.softwarelibre.com.ve/

Hugo Sandoval

Friday 09 April 2010 9:24:18 am

[Solved]

Create another file in apache with name (optional):

webdav.domain.com.conf

(I repeat: that name is optional)

The content is something like:

************************ <cut here>

<VirtualHost xxx.xxx.xxx.xxx:80>
SuexecUserGroup "#id" "#id"
ServerName webdav.domain.com
DocumentRoot /home/user/public_html
ErrorLog /var/log/virtualmin/webdav.domain.com_error_log
CustomLog /var/log/virtualmin/webdav.domain.com_access_log combined
ScriptAlias /cgi-bin/ /home/user/cgi-bin/
ScriptAlias /awstats /home/user/cgi-bin
DirectoryIndex webdav.php index.php
<Directory /home/user/public_html>
Options Indexes FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/user/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteRule . /webdav.php
<Files awstats.pl>
AuthName "domain.com statistics"
AuthType Basic
AuthUserFile /home/user/.awstats-htpasswd
require valid-user
</Files>
Alias /dav /home/user/public_html
<Location /dav>
DAV On
AuthType Basic
AuthName domain.com
AuthUserFile /home/user/etc/dav.digest.passwd
Require valid-user
Satisfy All
RewriteEngine off
</Location>
</VirtualHost>

*********************<cut here>

The interesting part is:

RewriteRule . /webdav.php

webdav.domain.com must be reachable, so, must be defined in DNS.

Then, in konqueror:

webdav://webdav.domain.com ask for username and password and show the siteaccess folder of my ezpublish site.

.·. .·. .·. .·. .·. .·. .·.
http://www.softwarelibre.com.ve/

Nicolas Pastorino

Monday 12 April 2010 1:51:44 am

Thanks for sharing Hugo!

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.