LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I enable WebDAV in Apache httpd? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-enable-webdav-in-apache-httpd-761178/)

your_shadow03 10-11-2009 11:42 AM

How do I enable WebDAV in Apache httpd?
 
I have been reading http://kbase.redhat.com/faq/docs/DOC-10637 to setup the same. But I am facing an issue here.

Whenever I am editing the file:
Code:

Alias /webdav /var/www/webdav
 Dav on

in wedav.conf under /etc/httpd/conf.d folder.

It says:
Code:

[root@chat conf.d]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 2 of /etc/httpd/conf.d/webdav.conf:
DAV not allowed here
                                                          [FAILED]
[root@chat conf.d]#

Any idea how to fix this?

eth1 10-12-2009 02:45 AM

You need to put the 'Dav On' directive inside a Directory directive. For example,
Quote:

<Directory /home/eth1/dav>
Dav On
</Directory>
Then do a configuration check,

Quote:

/etc/init.d/httpd configtest
With a 'Syntax Ok' message you can restart the daemon,

Quote:

/etc/init.d/httpd start
You can also check the following,



All times are GMT -5. The time now is 03:02 PM.