Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: WebDAV Setup.

WebDAV Setup: Difference between revisions

From MoodleDocs
Line 18: Line 18:
Configuring a new virtual directory in IIS is a two-step process:
Configuring a new virtual directory in IIS is a two-step process:


Create a new virtual directory using the Virtual Directory wizard
#Create a new virtual directory using the Virtual Directory wizard
Configure the access permissions on the new virtual directory
#Configure the access permissions on the new virtual directory


==== Create New Virtual Directory ====
==== Create New Virtual Directory ====
Open IIS and right-click on your Moodle website. Select '''New -> Virtual Directory'''... from the pop-up menu.
#Open IIS and right-click on your Moodle website. Select '''New -> Virtual Directory'''... from the pop-up menu.


[[Image:New_virtual_directory.png|200 px|Menu option required for creating new virtual directory]]
[[Image:New_virtual_directory.png|200 px|Menu option required for creating new virtual directory]]


Select '''New -> Virtual directory...''' from the pop-up menu. The '''Create New Virtual Directory Wizard''' is displayed.
#<li value="2">Select '''New -> Virtual directory...''' from the pop-up menu. The '''Create New Virtual Directory Wizard''' is displayed.


[[Image:Wizard_intro.png|200 px|IIS Virtual Directory Creation Wizard]]  
[[Image:Wizard_intro.png|200 px|IIS Virtual Directory Creation Wizard]]  


Call the new virtual directory '''Moodledata'''.
#<li value="3">Call the new virtual directory '''Moodledata'''.


[[Image:Name_directory.png|200 px|alt text]]
[[Image:Name_directory.png|200 px|alt text]]


Specify the path to the Moodledata directory.
#<li value="4">Specify the path to the Moodledata directory.


[[Image:Choose_path.png|200 px|Choosing path to folder on server]]
[[Image:Choose_path.png|200 px|Choosing path to folder on server]]


Ensure the new virtual directory has '''Read''', '''Write''' and '''Browse''' permissions.
#<li value="5">Ensure the new virtual directory has '''Read''', '''Write''' and '''Browse''' permissions.


[[Image:Directory_permissions.png|200 px|Specifying directory permissions]]
[[Image:Directory_permissions.png|200 px|Specifying directory permissions]]


Press the Finish button to create the new virtual directory.
#<li value="6">Press the Finish button to create the new virtual directory.


==== Configuring Virtual Directory Properties ====
==== Configuring Virtual Directory Properties ====


Right-click on the new virtual directory and select Properties from the pop-up menu.
#Right-click on the new virtual directory and select Properties from the pop-up menu.


[[Image:Check_properties.png|200 px|Checking new virtual directory properties]]
[[Image:Check_properties.png|200 px|Checking new virtual directory properties]]


Ensure that '''Read''', '''Write''', '''Directory browsing''', and '''Log visits''' are checked. Ensure '''Index this resource''' is unchecked.
#<li value="2">Ensure that '''Read''', '''Write''', '''Directory browsing''', and '''Log visits''' are checked. Ensure '''Index this resource''' is unchecked.
   
   
[[Image:Properties_view.png|200 px|Virtual directory properties correctly configured]]
[[Image:Properties_view.png|200 px|Virtual directory properties correctly configured]]


Click on the '''Directory Security''' tab and press the '''Authentication and access control''' Edit... button
#<li value="3">Click on the '''Directory Security''' tab and press the '''Authentication and access control''' Edit... button


[[Image:Authentication_tab.png|200 px|Directory Security authentication and access control]]
[[Image:Authentication_tab.png|200 px|Directory Security authentication and access control]]


Authenticated access configuration will depend on your needs. Basic access will require you to uncheck '''Enable anonymous access''' and check '''Basic authentication (password is sent in clear text)'''. You may get a warning about security:
#<li value="4">Authenticated access configuration will depend on your needs. Basic access will require you to uncheck '''Enable anonymous access''' and check '''Basic authentication (password is sent in clear text)'''. You may get a warning about security:


[[Image:Authentication_warn.png|200 px|Directory security warning]]
[[Image:Authentication_warn.png|200 px|Directory security warning]]


Your new virtual directory is ready for testing.
#<li value="5">Your new virtual directory is ready for testing.
 
[[Image:Final_view.png|200 px|New virtual directory ready for use]]
[[Image:Final_view.png|200 px|New virtual directory ready for use]]



Revision as of 15:53, 14 June 2010

WebDAV access allows users which can edit course files to do so from a convenient WebDAV "Web Folder"/Mountpoint which acts like a local drive.

To set up WebDAV access in your Moodle installation:

  • In Admin->Server->WebDAV Set webdavenable to Yes.
  • The 'moodle/site:webdav' capability controls who can connect - by default the "Course Creator" role has it. Assign the role at the system level for users to be able to connect.
  • If you want to restrict WebDAVaccess so it is only accessible from the local LAN, use the webdavsubnet setting.

(This feature will be available after v1.9)

Note: For the WebDAV feature to work, the PHP setting magic_quotes_gpc must be off.


Configuring WebDAV on Microsoft Windows Server 2003 R2 (Service Pack 2), IIS V6.0

Configure IIS

Configuring a new virtual directory in IIS is a two-step process:

  1. Create a new virtual directory using the Virtual Directory wizard
  2. Configure the access permissions on the new virtual directory

Create New Virtual Directory

  1. Open IIS and right-click on your Moodle website. Select New -> Virtual Directory... from the pop-up menu.

Menu option required for creating new virtual directory

  1. Select New -> Virtual directory... from the pop-up menu. The Create New Virtual Directory Wizard is displayed.

IIS Virtual Directory Creation Wizard

  1. Call the new virtual directory Moodledata.

alt text

  1. Specify the path to the Moodledata directory.

Choosing path to folder on server

  1. Ensure the new virtual directory has Read, Write and Browse permissions.

Specifying directory permissions

  1. Press the Finish button to create the new virtual directory.

Configuring Virtual Directory Properties

  1. Right-click on the new virtual directory and select Properties from the pop-up menu.

Checking new virtual directory properties

  1. Ensure that Read, Write, Directory browsing, and Log visits are checked. Ensure Index this resource is unchecked.

Virtual directory properties correctly configured

  1. Click on the Directory Security tab and press the Authentication and access control Edit... button

Directory Security authentication and access control

  1. Authenticated access configuration will depend on your needs. Basic access will require you to uncheck Enable anonymous access and check Basic authentication (password is sent in clear text). You may get a warning about security:

Directory security warning

  1. Your new virtual directory is ready for testing.

New virtual directory ready for use

See Also