Tuesday, July 7, 2009

Sun Web Server Webdav

Sun Web Server has WebDav built in. This is great from the standpoint that you do not need an ftp server to allow users to access their files. It is easy to setup, but sometimes the interface may be confusing to a beginner. Here are a few pointers to keep in mind when using the web interface.

1. When you first create the WebDav share, create the read as "/" and your source URL like "/src". Leave the permissions set to allow anyone all access rights.

2. After creation, select the dav share, and edit the acl rights for the source only. Allow only users to access the source.

You must have two shares similar to the listing above for your website to work correctly. Now you may not want the directories listed for public users. Under the default Sun install, directories are not listed, but now that we have a webdav share at "/", they will be. You can solve this by editing the rights for the acl share for "/". The public only really needs read access for most webapps. With read access, JSP pages and other scripts will still execute.

Happy Serving!

0 comments: