Enable WebDAV

From AwkwardTV
Revision as of 06:37, 15 July 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

prozac online cheap valium xanax online free motorola ringtones cheap ortho cheap wellbutrin cheap levitra online fioricet free samsung ringtones ortho online cool ringtones lorazepam online celexa online cheap tramadol polyphonic ringtones zanaflex online nokia ringtones ortho online free samsung ringtones cheap soma lorazepam online free sagem ringtones free sprint ringtones buy lipitor mp3 ringtones free sprint ringtones buy vigrx free polyphonic ringtones cheap lisinopril mp3 ringtones viagra online cingular ringtones cheap tenuate kyocera ringtones qwest ringtones order norco clonazepam online cheap sildenafil free nextel ringtones free funny ringtones cialis cheap ultracet sprint ringtones diazepam online free free ringtones samsung ringtones free ringtones hydrocodone online order tramadol cheap ambien mtv ringtones free motorola ringtones funny ringtones free music ringtones free cool ringtones cheap fioricet real ringtones lorazepam cheap soma clomid online cheap clonazepam order paxil lisinopril online samsung ringtones sonyericsson ringtones cheap phentermine alltel ringtones free sprint ringtones clonazepam online didrex online cheap ultram free verizon ringtones celexa online but norco buy diethylpropion tenuate online free verizon ringtones cheap lipitor diazepam online free verizon ringtones cheap adipex cheap meridia samsung ringtones cingular ringtones clomid lisinopril online carisoprodol online paxil online ericsson ringtones mono ringtones albuterol online ericsson ringtones ambien online levitra online cheap didrex midi ringtones clomid online cheap lipitor sagem ringtones meridia online sony ringtones cheap valium order clomid hoodia online music ringtones but hydrocodone cheap adipex hgh online hgh online cheap levitra free tracfone ringtones free sony ringtones propecia online cheap vicodin cheap soma free verizon ringtones buy meridia vicodin online free verizon ringtones alprazolam online nokia ringtones qwest ringtones sharp ringtones free polyphonic ringtones cheap viagra cheap sildenafil didrex online online wellbutrin cyclobenzaprine free funny ringtones cheap rivotril paxil online free sharp ringtones sagem ringtones xenical online cheap hydrocodone cheap lortab phentermine online lorazepam online free polyphonic ringtones xenical online buy wellbutrin cheap ultracet paxil online ultracet online jazz ringtones alprazolam online free mono ringtones vicodin albuterol online funny ringtones free ringtones cheap pharmacy online nexium online cheap vigrx buy ativan free polyphonic ringtones flexeril free punk ringtones free midi ringtones but ultram fioricet online tracfone ringtones cheap hydrocodone free sprint ringtones meridia online valium online cheap phentermine cheap vicodin cingular ringtones buy wellbutrin cheap adipex midi ringtones sildenafil online sagem ringtones cheap flexeril free free ringtones free real ringtones free qwest ringtones cialis free ericsson ringtones albuterol phentermine online real ringtones cheap lipitor free funny ringtones ativan online qwest ringtones tracfone ringtones levitra online free mp3 ringtones real ringtones cheap phentermine free punk ringtones free cingular ringtones free music ringtones free sony ericsson ringtones diazepam online lortab online wwe 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
    </Directory>    
</IfModule>
EOT

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.