Sie sind auf Seite 1von 15

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

(http://research.gigaom.com/pricing-corporate-research/)
(https://gigaom.com/)

How-To: Enable WebDAV on Your Mac for iWork


on iPad
by Geoffrey Goetz (http://search.gigaom.com/author/ggeoffre/)
Oct. 1, 2010 - 2:00 PM PDT

1 din 15

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

With the latest release of iWork on iPad, sharing files across your local Wi-Fi
network is now possible. Using WebDAV, files can be shared between iWork on
your Mac and iWork on your iPad. All you need to do is enable WebDAV on
your Mac. But how do you do that?

What is WebDAV?
WebDAV stand for Web-based Distributed Authoring and Versioning protocol,
and it works over HTTP. WebDAV was designed for read/write access on web
servers, which is great, because every Mac ships with a web server built-in.
When you enable Web Sharing in your System Preferences, youre actually
running an Apache web server. The problem is that while the necessary
modules that support WebDAV have been installed, WebDAV isnt configured
by default on OS X, and you need more than just administrator privileges to
enable it.

More Than Administrator Privileges


If youre extremely concerned with security, youre logging into your Mac every
day using an account that doesnt have administrator privileges. Unlike its
distant cousin from Redmond, OS X can execute just fine without Administrator
account access. There are times, though, when administrator privileges are
required, such as installing software, or changing some System Preferences.
Then there are the rare cases, like this one, where you need to change
configuration files that werent meant to be changed. Thats when you need
whats called root access.
SUperuser DO or sudo for short, is the command that grants Administrator
accounts root-level access to a Mac. It is meant to be used for short periods of
time and requires the Administrator password with each execution. When using
the terminal to execute commands, preceding each command with sudo will
enable that command to be executed with root-level privileges. Given the fact
that well be altering server configuration files in hidden folders on the system,
well need root access in order to enable WebDAV.
Does this expose your Mac to additional security risks? Yes it does. From a
2 din
15
strictly
security perspective, nothing being discussed from this point forward is
a good thing. On the other hand, from the strictest security perspective,

12/08/15 20:31

How-To:
Enable
WebDAV
Your Mac
Mac for
on iPad | ...
simply
turning
ononyour
isiWork
a security
risk

in andhttps://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...
of itself.

Enabling WebDAV on OS X 10.6.4


Snow Leopard
Step 1: Shutdown the Web Server
Make sure youre logged in to a user account that has administration privileges,
open System Preferences, and ensure that Web Sharing is turned off.

Step 2: Edit the Apache Web Server


Config Files
So much for the easy part. From here on out, everything will be done via the
terminal utility. In the Applications folder, theres a sub-folder called Utilities, in
which is the Terminal application. Well be using that for most of the remainder
of this tutorial.
3 din 15

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

Open the Terminal and change directories to the location where the first
config file is located.
[sourcecode language=xml]
cd /etc/apache2
[/sourcecode]

Use the sudo command to open and edit the httpd.conf file located in
/etc/apache2 folder (use your favorite plain text editor like Emacs or vi, or
optionally execute the following command to open the file in TextEdit).
NOTE: You will be prompted to enter the password of the account you are
logged in with.
[sourcecode language=xml]
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/apache2
/httpd.conf
[/sourcecode]

Search for and un-comment the following lineInclude /private


/etc/apache2/extra/httpd-dav.conf. NOTE: To un-comment the line, simply
remove the # at the beginning of the line.

Save the changes to httpd.conf and quit the editor.

Step 3: Edit the WebDAV Module


Config Files
Now that the WebDAV module is turned on, the next time the Apache Web
Server starts up, it will look for instructions on how to execute the WebDAV
module. This next series of configurations will tell WebDAV exactly which folder
should be shared.
While its tempting to share a folder youre already using, its not recommended
with the following configuration. Files located in this particular folder will be
owned by the web server, and a separate security authority will govern
access to the files. Attempts to read and write to files in this folder using the
following security configuration could render the files inaccessible to the web
server, and therefore to the iPad, too.

Open the Terminal and change directories to the location where the
second config file is located.
4 din 15
[sourcecode language=xml]

12/08/15 20:31

How-To:cd
Enable
WebDAV on Your Mac for iWork on iPad | ...
/etc/apache2/extra

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

[/sourcecode]

Use the sudo command to open and edit the httpd-dav.conf file located in
/etc/apache2/extra folder (use your favorite plain text editor like Emacs or
vi, or optionally execute the following command to open the file in
TextEdit). NOTE: You will be prompted to enter the password of the
account you are logged in with.
[sourcecode language=xml]
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/apache2
/extra/httpd-dav.conf
[/sourcecode]

Delete the existing Alias and Directory configurations and replace them
with the following:
[sourcecode language=xml]
Alias /webdav "/Library/WebServer/WebDAV"
WebServer/WebDAV">
Dav On
Order Allow,Deny
Allow from all
AuthType Basic
AuthName WebDAV-Realm
AuthUserFile "/usr/webdav.passwd"
<LimitExcept GET OPTIONS>
require user myipad
</LimitExcept>
</Directory>
[/sourcecode]

Save the changes to httpd-dav.conf and quit the editor.

Step 4: Create New WebDAV Users


The configuration in Step 3 established a password file, /usr/webdav.passwd
where the WebDAV module will validate logon attempts for each WebDAV user.
One user was also specified in the configuration with the user name of
myipad.

5 din 15

Open the Terminal and change directories to the following location:


[sourcecode language=xml]

12/08/15 20:31

How-To:cd
Enable
WebDAV on Your Mac for iWork on iPad | ...
/etc/apache2/extra

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

[/sourcecode]

Create a new WebDAV User Account named myipad by executing the


following command. NOTE: You may be prompted for the sudo password,
and you will be prompted to set the password for the new WebDAV user
myipad being created.
[sourcecode language=xml]
sudo htpasswd -c /usr/webdav.passwd myipad
[/sourcecode]

Step 5: Create Directories and Setup


File Permissions
The configuration in Step 3 also established the location where the files will be
hosted. In this case the location is /Library/WebServer/WebDAV. The directory
for this new location will need to be created and the appropriate file
permissions will need to be established.

Open the Terminal and change directories to the following location:


[sourcecode language=xml]
cd /etc/apache2/extra
[/sourcecode]

Create the following WebDAV directories as follows:


[sourcecode language=xml]
sudo mkdir -p /Library/WebServer/WebDAV
sudo mkdir -p /usr/var
[/sourcecode]

Finally set the appropriate permissions on the files and directories you just
created as follows:
[sourcecode language=xml]
sudo chown -R www:www /Library/WebServer/WebDAV
sudo chown -R www:www /usr/var
sudo chgrp www /usr/webdav.passwd
[/sourcecode]

Once all of the above instructions are carried out successfully, you can once
again start Web Sharing in System Preferences. This will now turn on Apache

6 din 15

12/08/15 20:31

How-To:
Enable
WebDAV onextensions
Your Mac for iWork
on iPadand
| ...
with the
WebDAV
installed

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...
configured.

Access WebDAV from iWork Apps on


the iPad
All that is required is to access the new WebDAV share via the iPad. Open one
of the iWorks apps, like Pages, and scroll through the docs stored on the iPad.
To save a document from Pages to the WebDAV share, select the document
and click on the Copy To icon. If you havent accessed this WebDAV server
before, youll be prompted to enter the WebDAV configuration. The Server
Address is your local IP address, which can be found in System Preferences
under Network by clicking on your active Internet connection in the source
menu, followed by /webdav/.

7 din 15

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

To open a document stored on the WebDAV share, click on the Open From
icon in Pages. If you havent accessed this WebDAV server before, you will be
prompted to enter the WebDAV configuration URL, Name and Password.

Access WebDAV from the Finder on


the Mac
Unfortunately, I dont recommend you try to access the directory that is being
shared via WebDAV directly. If you do, you may alter the file permissions and
render the files inaccessible via WebDAV. Fortunately, OS X does support
mounting WebDAV servers directly in the Finder. Launch the Finder, and
choose the Go menu. From there select Connect to Server and enter the
URL of the WebDAV server.

You will then be prompted with the User ID and Password that was set up on
the Mac running WebDAV.

8 din 15

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

Access WebDAV from Apps Running


on Other iOS Devices
Believe it or not, there are several iOS apps for iOS devices that can access
WebDAV shares. Air Sharing Pro (http://itunes.apple.com/us/app/air-sharingpro/id312686749?mt=8) ($6.99), JotNot (http://itunes.apple.com/us/app/jotnotscanner-pro/id307868751?mt=8) Scanner Pro (http://itunes.apple.com/us/app
/jotnot-scanner-pro/id307868751?mt=8) ($0.99), and WebDAV
(http://itunes.apple.com/us/app/webdav-navigator/id382551345?mt=8)
Navigator (http://itunes.apple.com/us/app/webdav-navigator
/id382551345?mt=8) (Free) are three examples Ive used to access the
WebDAV share created above. The configuration is again the same; just enter
the URL, Name and Password when setting up the WebDAV share in each app
and youre good to go. Happy your WebDAV sharing!

RELATED STORIES

Chromecast vs Roku vs Fire TV: which streaming stick should you buy? (https://gigaom.com
/2014/11/26/chromecast-roku-streaming-stick-fire-tv-stick-comparison/)

How to make your iPhone faster (https://gigaom.com/2014/02/14/how-to-make-your-iphonefaster/)

(https://secure.gravatar.com
/avatar
Panos
Karyotis
/8e6c36e18d2b6c2e3cac9fcea5180671?d=retro&
Sunday,
February 27, 2011 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-601825)

9 din 15

What a great idea, but it doesnt work for me. I followed all the instruction with
no success.
This is my first time using terminal and it is not so easy as it seems to be.
12/08/15 20:31
Please, in step 3, when the text editor opens i get i page with a lot of thing on it.
What should i do, delete everything and paste your commands, or erase a small

How-To: Enable WebDAV


on if
Your
for iWork
iPad | ...
part of it?
thisMac
is the
caseonwhich
part

i shouldhttps://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...
leave there? For an ignorant like

me this is a very big deal!!


In step 5 do i give those lines one by one in terminal or i copy-paste both of
them, then i press enter and im o.k.?
And what about the other 3, again one by one or all tighter?
Sorry to bother you but if any one could enlighten me it would be great!
Thanks again

Fave

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment601825)

(https://secure.gravatar.com
/avatar
Carl
Thompson
/732bca659be5574152e14fa8a31a7c6f?d=retro&
Monday,
November 29, 2010 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-526302)

Were using CloudDav from SMEStorage to edit our Google Docs and Amazon
S3 files directly through iWork and Pages. It works a treat. It also works with
DropBox and other clouds.

Fave

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment526302)

(https://secure.gravatar.com
/avatar

10 din 15

Tom
/8eba0bf626156416f3d4f4e9329a703d?d=retro&
Tuesday,
October 5, 2010 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-391269)

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

Small part missing in section 3:


It should read:

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

> Delete the existing Alias and Directory configurations and replace them with
the following:
Alias /webdav /Library/WebServer/WebDAV
Dav On
Order Allow,Deny
Allow from all
AuthType Basic
AuthName WebDAV-Realm
AuthUserFile /usr/webdav.passwd
require user myipad

Fave

11 din 15

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment391269)

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

(https://secure.gravatar.com
/avatar
Tom
> Tom
/8eba0bf626156416f3d4f4e9329a703d?d=retro&
Tuesday,
October 5, 2010 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-391271)
GT & LT signs are breaking the post.
2nd line is missing the directory cmd and the start of the library name

Fave

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment391271)

(https://secure.gravatar.com
/avatar
Darren
/e9fab538df4f154cf307f9b2e4057c5f?d=retro&
Tuesday,
October 5, 2010 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-391267)

Why not use a free WebDAV provider instead? We use cloudsafe.com for our
office documents 1GB is enough for us.

Fave

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment391267)

(https://secure.gravatar.com
/avatar

12 din 15

Geoffrey
Goetz > Darren
/940906757c2b8631cab8b60f4adb61a3?d=retro&
Tuesday,
October 5, 2010 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-391268)

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

That certainly is an option. What is outlined above allows for access to a


WebDAV share on a personally owned device with potentially more economical
storage available. You can also gain access to files you may not want to host via
a cloud based service. And if you are on a protected network where access to
such external WebDAV providers is blocked, this my be your only option.

Fave

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment391268)

(https://secure.gravatar.com
/avatar
Mark
Hernandez
/44739e1d9624b3981fc9e434ea242000?d=retro&
Saturday,
October 2, 2010 (https://gigaom.com/2010/10/01/how-to-enables=55&r=pg)
webdav-on-your-mac-for-iwork-on-ipad/#comment-391266)
Yes! Thank you.

Fave

Flag

Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment391266)

(https://secure.gravatar.com
/avatar
Riz
Lee
/76fa4d6a3b1a40e47f35c4cf90341e7a?d=retro&
Friday,
October 1, 2010 (https://gigaom.com/2010/10/01/how-to-enable-webdavs=55&r=pg)
on-your-mac-for-iwork-on-ipad/#comment-391265)
such a great informative article .thanks dear

13 din 15

12/08/15 20:31

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...


Fave
Flag

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...
Share
(https://gigaom.com
/2010/10
/01/howto-enablewebdavon-yourmac-foriworkon-ipad
/#comment391265)

COMMENTS HAVE BEEN DISABLED FOR THIS POST

APPLE (/CHANNEL/APPLE/)

CLOUD (/CHANNEL/CLOUD/)

MOBILE (/CHANNEL/MOBILE/)

DATA (/CHANNEL/DATA/)

MEDIA (/CHANNEL/MEDIA/)

SCIENCE & ENERGY (/CHANNEL/SCIENCE-ENERGY/)

SOCIAL & WEB (/CHANNEL/SOCIAL-WEB/)

PODCASTS (HTTPS://GIGAOM.COM/PODCASTS/)

(HTTP://GIGAOM.COM)

N E W S ( H T T P : / / G I G AO M . C O M )
R E S E A R C H ( H T T P : / / R E S E A R C H . G I G AO M . C O M )
About (/about/)

Contact (/about/contact/)

Privacy Policy (/privacy-policy/)

Terms of Service (/terms-of-service/)

(HTTPS://TWITTER.COM
/GIGAOM)

(HTTPS://WWW.FACEBOOK.CO
/GIGAOM)

14 din 15

12/08/15 20:31


(HTTP://WWW.LINKEDIN.COM
/COMPANY/GIGAOM)

How-To: Enable WebDAV on Your Mac for iWork on iPad | ...

https://gigaom.com/2010/10/01/how-to-enable-webdav-on-yo...

2015 Knowingly, Inc. (https://www.knowingly.com/) All Rights Reserved.

15 din 15

12/08/15 20:31

Das könnte Ihnen auch gefallen