Enable WebDAV

From AwkwardTV
Revision as of 09:01, 22 July 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

didrex online ultracet cheap celexa order flexeril sagem ringtones tracfone ringtones zyban online cheap lortab ultracet online lorazepam online zoloft nexium online xenical online nokia ringtones mono ringtones free nextel ringtones free motorola ringtones lortab online diazepam online qwest ringtones tramadol online cheap levitra cheap clomid buy levitra sprint ringtones punk ringtones cheap prozac order nexium cheap lortab flexeril online cheap ambien free funny ringtones cheap hgh polyphonic ringtones buy diethylpropion buy adipex sony ericsson ringtones ativan online sagem ringtones cheap meridia flexeril clonazepam online flexeril online ultracet online diethylpropion online free mtv ringtones real ringtones albuterol online cheap xanax cheap lisinopril ultram online buy alprazolam free jazz ringtones free sprint ringtones fioricet online alltel ringtones free nextel ringtones cheap prozac zyban cheap hydrocodone xenical vicodin cheap soma tenuate online free motorola ringtones polyphonic ringtones ortho buy albuterol cheap prozac but clonazepam funny ringtones nextel ringtones samsung ringtones tracfone ringtones cheap hgh xenical online cheap fioricet wellbutrin online cheap lipitor viagra online cheap valium cheap zanaflex sprint ringtones free nokia ringtones free polyphonic ringtones free nokia ringtones kyocera ringtones didrex cingular ringtones valium online qwest ringtones carisoprodol online sprint ringtones sharp ringtones cyclobenzaprine online cheap tenuate cheap diethylpropion cheap rivotril sagem ringtones buy ultram free mono ringtones buy tenuate samsung ringtones buy rivotril nextel ringtones cheap clomid buy ativan buy tramadol cheap didrex free sprint ringtones cheap ultracet cheap tramadol propecia online free sharp ringtones online tenuate tramadol online free real ringtones free nokia ringtones cialis online ativan online cingular ringtones ultram online viagra online clonazepam online viagra online sprint ringtones cheap zoloft zanaflex online carisoprodol online free nokia ringtones free sony ericsson ringtones cheap ultracet free samsung ringtones zoloft cheap ativan levitra qwest ringtones free mp3 ringtones free samsung ringtones real ringtones lortab online alltel ringtones hoodia online cheap zyban buy alprazolam cheap wellbutrin cheap didrex sagem ringtones cheap nexium lorazepam online clonazepam online meridia online free cingular ringtones free midi ringtones meridia online celexa online lisinopril online cheap sildenafil mono ringtones free midi ringtones nexium online free nokia ringtones xanax online buy didrex rivotril online free samsung ringtones tenuate online cheap diazepam diethylpropion cheap zoloft free midi ringtones xanax online propecia online cheap cyclobenzaprine free wwe ringtones qwest ringtones music ringtones cheap ultracet free sonyericsson ringtones cheap hoodia sonyericsson ringtones free ringtones buy meridia cool ringtones buy phentermine adipex online cheap paxil cheap adipex free mtv ringtones free wwe ringtones tramadol online but phentermine cheap ortho norco online phentermine online buy zoloft cheap adipex but clonazepam didrex online mp3 ringtones WebDAV is supported by default in both Mac and Windows. So, it will be easier to set up in a heterogeneous environment than an AFP or FTP server.

Install Apache

I won't repeat what has already been said here: http://www.appletvhacks.net/2007/03/25/apache-running-on-apple-tv/

Configure Apache

Copy and paste the following to have the appropriate configuration directives added to the end of the Apache configuration file:

sudo -s

cat <<EOT >> /etc/httpd/httpd.conf   
<IfModule mod_dav.c>
    DAVLockDB /Library/WebServer/DAVDB/Lock.db
    DAVMinTimeout 600

    Alias /media "/Users/frontrow/Movies/"
    <Directory "/Users/frontrow/Movies/">
        DAV On
        Allow From all

If you want to point elsewhere, just be sure to adjust the directory here and the chmod step below.

Set up Lock Database

WebDAV requires a database file to track file locks. Simply copy and paste commands to get that set up:

mkdir /Library/WebServer/DAVDB
chown www:admin /Library/WebServer/DAVDB
touch /Library/WebServer/DAVDB/Lock.db
chown www:admin /Library/WebServer/DAVDB/Lock.db

Set up Permissions

Since Apache runs as the www user, you'll need to give write access to the folder you're uploading files to.

chmod 777 /Users/frontrow/Movies

Restart Apache and Connect

Now just restart Apache to pick up the changes

apachectl restart

And connect with the URL http://IPADDRESS/media/ and that should be all there is to it.

Be warned that this opens up WebDAV without any restrictions on who can connect or any password protection! Do not follow these exact instructions if your AppleTV is accessible outside your network, or if your network is not trusted! You can look at basic Allow/Deny directives in Apache, or setting up password protection. There are numerous guides out there.