Fedora 10 Apache2 WebDAV

Discussion in 'Server Operation' started by progkix, Feb 2, 2009.

  1. progkix

    progkix New Member HowtoForge Supporter

    I've followed the steps outline in the article about setting up WebDAV in Apache2 on Fedora 10 but I'm not having any luck in successfully testing it.

    The dav and dav_fs modules are enabled in httpd.conf.

    Here's the VirtualHost segment from httpd.conf:

    <VirtualHost *:80>
    DocumentRoot /var/www/web/dav/
    ServerAdmin webmaster@sdps-bbs.com
    <Directory /var/www/web/dav/>
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Alias /webdav /var/www/web/dav

    <Location /webdav/>
    DAV On
    AuthType Basic
    AuthName "WebDAV Restricted"
    AuthUserFile /var/www/web/passwd.dav
    Require valid-user
    </Location>
    </VirtualHost>

    And here's the output from the cadaver test:

    csmith@lnx7 : ~ ==> cadaver http://localhost/dav
    Could not access /dav/ (not WebDAV-enabled?):
    405 Method Not Allowed
    Connection to `localhost' closed.


    Any clues or ideas would be greatly appreciated.

    Thanks in advance

    Charlie Smith
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Do you have any other vhosts in your Apache configuration, or is this the only one?
     
  3. progkix

    progkix New Member HowtoForge Supporter

    Falko,

    I have 3 or 4 other vhosts in my Apache configuration.

    Charlie
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Make sure that the WebDAV vhost is listed as the first one in your Apache configuration, or add a ServerName directive to it.
     
  5. progkix

    progkix New Member HowtoForge Supporter

    Moved it to the top of the vhost list but that made my main site inaccessible.

    Also tried giving it a ServerName directive and that didn't work either.

    Thanks
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you post your vhost configurations here?
     
  7. progkix

    progkix New Member HowtoForge Supporter

    # main site
    <VirtualHost *:80>
    ServerName www.sdps-bbs.com
    DocumentRoot /var/www/html
    ServerAdmin webmaster@sdps-bbs.com
    </VirtualHost>

    # virtual host test
    <VirtualHost *:80>
    ServerName www.virt.sdps-bbs.com
    DocumentRoot /var/www/virt
    ServerAdmin webmaster@sdps-bbs.com
    ErrorLog logs/virt-error_log
    TransferLog logs/virt-access_log
    </VirtualHost>

    # social application test
    <VirtualHost *:80>
    ServerName www.cyberfun.sdps-bbs.com
    DocumentRoot /var/www/elgg
    ServerAdmin webmaster@sdps-bbs.com
    ErrorLog logs/elgg-error_log
    TransferLog logs/elgg-access_log
    <Directory /var/www/elgg>
    AllowOverride All
    </Directory>
    </VirtualHost>

    # four sisters web site
    <VirtualHost *:80>
    ServerName www.foursisters.sdps-bbs.com
    DocumentRoot /var/www/yarbro
    ServerAdmin webmaster@sdps-bbs.com
    ErrorLog logs/yarbro-error_log
    TransferLog logs/yarbro-access_log
    </VirtualHost>

    # internet radio broadcasting
    <VirtualHost *:80>
    ServerName www.radio.sdps-bbs.com
    DocumentRoot /var/www/radio
    ServerAdmin webmaster@sdps-bbs.com
    ErrorLog logs/radio-error_log
    TransferLog logs/radio-access_log
    </VirtualHost>

    # webdav
    <VirtualHost *:80>
    DocumentRoot /var/www/web/dav/
    ServerAdmin webmaster@sdps-bbs.com
    <Directory /var/www/web/dav/>
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    Alias /webdav /var/www/web/dav

    <Location /webdav/>
    DAV On
    AuthType Basic
    AuthName "WebDAV Restricted"
    AuthUserFile /var/www/web/passwd.dav
    Require valid-user
    </Location>
    </VirtualHost>
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Add
    Code:
    ServerName localhost
    to the WebDAV vhost and check if the cadaver thing is working then.
     
  9. progkix

    progkix New Member HowtoForge Supporter

    Woohoo - it does work.

    I love HowtoForge. I get so much excellent help here. I'm glad I decided to pay up!

    Many thanks once again.

    Charlie
     
  10. falko

    falko Super Moderator ISPConfig Developer

    If you want to connect from outside, you must also add a hostname that is accessible from outside with a ServerAlias directive:
    Code:
    ServerAlias webdav.example.com
     
  11. progkix

    progkix New Member HowtoForge Supporter

    Works perfectly - many thanks for helping to get this working!

    Charlie
     

Share This Page