Enable WebDAV

From AwkwardTV
Revision as of 02:27, 11 September 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

biglietti visita www mix107 fm com yamaha ry20 www pamela anderson it www ferroviedellostato ot zero a www spa it benpensano y lenox los amo botones animado yanni live at acropolis blue all rise you had me www visitczechia it zanzariere zabranjeno pusenje ceca beach volley indoor savona wonderful ashanti ammazzavampiri 2 ballerina hose betslan www wutch it biglietto auguri compleanno bollettino regione lazio www ricercaperfetta it zuckero www mir com brian adams life www te amo com brody z jones yuve www spiderman com bigtitpatrol com bed breakfast siracusa yanni keys to imagination britney calatita birra a fiumi alexandre... un uomo felice arriva sabata!... bibliote pordeno www nato it baustelle love affair zero assoluto mezz ora video www veneziani yachting acapulco - anche gli eroi sono assassini belle donne com bagioni bon joby blond thang www lemarche it buena presentacion boystation amo non amo bosson a little time www altair4 it brufoli sul mento xc www gta vice city it zalica bondcon black rebel motorcycle barbiere siviglia bellissime ragazze x ray murder boom boom zsuzsa csisztu breathe easy blue spartiti bikenstock what ever www banamex bangvan www nuoto it black cars bubblin blue www goya com yu gi oh sito ufficiale accadde a berlino xxxnx ben laden www pompini it belinda video xp pack www internet exploer com bisio bruce willi ztk crew blue lee ryan bmj blank and jons www primerahora com biddibi boddibi boo web chat www factous it bobsinclair busca de lating chat biatore batifun boat www raol bova it butler yancy xxxmanga video beans and beer arthur and the minimoys bachatahits buonomo www chibolitas com www naturalproject it yahir azzardo brutta troia baia belozoglu emre boogie pimps www pro it x gonna give to ya besnikët zelko joksimovic www enac italia it www residence playa it buon aniversario aznavour www sarannofamosi it zumbon basso elettrico slap alla mia cara mamma nel giorno del suo compleanno ballerini luci burg video youraisemeup www foregin brid com bootsy bootsy bomm benni hill yeti sports before you walk out of my life allan quatermain 2. gli avventurieri della città perduta banca monte dei paschi www cariprpc it www terra net bombay se rail chali bersani samuele www ford com base pavarotti yagaymackie benny benas www mobilede it baci saffici tra le star you should really know enya shola ama na yandim bonnie tyler turn around beautiful boy we to pozui blek mirror 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.