Share » Learn » eZ Publish » Build a WebDav-Enabled Intranet With...

Build a WebDav-Enabled Intranet With eZ Publish

Friday 25 February 2005 6:13:00 am

  • Currently 4 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

As mentioned earlier, eZ Publish comes with a WebDav interface as standard. To get this interface up and running, we need to create a new virtualhost. To do so, we edit the Apache configuration file, httpd.conf. To add a new virtualhost directive in httpd.conf, you'll need to add a configuration like the one shown below. Just replace the path, /var/www/intranet, with the root of your eZ Publish installation, and the ServerName webdav.no with the DNS name for your WebDav virtualhost.

<VirtualHost *> 

Options FollowSymLinks Indexes

ServerAdmin nospam@ez.no

DocumentRoot /var/www/intranet

RewriteEngine On

RewriteRule !\.(css|jar|js|html|php)$ /var/www/intranet/webdav.php 

ServerName webdav.no

ErrorLog logs/error_log 

CustomLog logs/access_log common

</VirtualHost>

If you do not have access to a DNS server, you can add an entry in your 'hosts' configuration file; alternatively, you could have Apache listen to another port, for example, port 81. If you add the webdav host name to the 'hosts' configuration file, it will not be accessible from any other computer.
The webdav interface also needs to be enabled in eZ Publish. This can be done by altering settings/webdav.ini. Below you find the setting that enables the WebDav interface.

[GeneralSettings] 

EnableWebDAV=true
36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)