Enable WebDAV

From AwkwardTV
Revision as of 07:16, 24 August 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

giovanni ii (zar di bulgaria) gps autoradio john holmes z740 forno gas ariston funfiles ed damer l erboristeria www uni sa it panasonic sv-av50 assicurazione arcore boson batteria acer n50 attivazione omnitel mms dumka circuito rc eternity di robbie williams serravalle outlet orari di apertura hotel congressuali eve angeli nuda ideo queen fantastici 4 telenovela juana la virgen moda argentina honda hrv incontri crema verbatim super azo www nhipcauamnhac saigonnet vn universita messina dragon ball - il fenomeno despinavandi opa opa sapphire 9600 mazzoli srl gps polso prima prova maturita 2004 cloe previdenza omette parte contributi victor webster firenze sogna grande grande grande senza dubbio degli articolo 31 tipi di teatro in francia caroti srl le carte da un renault laguna grantour 2002 bellezze sfondi hesperornis nikon macro zyxel router prestige 660hw j luise sons ltd wagner levine dispensa ecdl lavastoviglie a incasso ariston luca d ammonio kta-pbg4266 512 comune pesaro batteria ba600 pascoli italy affettatrice 19 alberghi di sorrento hp proliant g2 pianoforti yamaha banditoz no le amas a el citer cucina legno sonic the hedgehog advance a 520 yaris milano frasi di jim morrison wireless media volvo pavia il tesoro del castello senza nome film lass es liebe sein prova di trazione jose mourinho lcd samsung le32r51b doppio orario orologi custodia belkin alluminio milano rodi header maglia cuba pantaloni adidas donna terzo reich underground bugia tv 5 trevi antiquariato mobile el baile laser hp 2840 rififi a tokyo arent e il totalitarismo video gratis pam e tommy batteria 3330 olivetti summa 32 mayarchuk trasgredire elisa menegola offerta hotel sorrento box hd esterno sata takarazuka scultura lignea giacca capalbio xxx free porn dom so many thaks chi vuol essere millionario marconi carolina free mpeg fuck in pantyhose franky fack you back romanzi erotici zyxel router prestige 652h rai tre because love n you concessionario ford milano the hunt for red october zoom com chat gratuiti per ragazzi e ragazze universal trading company srl auricolare bluetooth the moon italian the brothers lettore mp3 apple monitor tft acer zach braff ddr2 ecc 512 santo california lyrics dolce amor irlanda vacanza studio hotel 3 stelle nizza io, mammeta e tu perver hopi masterizzatore cd-rw lg goob sabka www wp corsi ginnastica artistica fapi presa macchina digitale kodak madre teresa calcutta forno da incasso programmatore da 90 huang fei hong traduzione gratuita italiano inglese raoul bova nudo caterina va in citta foto massaggi zona toscana nuha dvd xv calvin scaricare suoneria panasonic duncan dei blue foto sexy sardegna mappa rings clipart musica staffe a muro ferrari it who s your baby now villamarina porno paris hilton free style roll away garcia sejas mulatta ati fire gl x2 pdf report writer usb pen -mp3 kate jordan enzo iacchetti chiusere per porte splash - una sirena a manhattan maglia nfl km0 citroen c2 auto km 0 mp3 samsung lettori dvd e divx aurora sul mare un nuovo titolo xbox live dal giappone cariparo it golf 25 years v600 silver manuale ripresa video big game hunter 3 nissan patrol td se sw lancia auto fotocamera digitale fujifilm desktop fiori pirelli 44 grand hotel del mare bordighiera la bibbia dei ragazzi norton 2005 attraction ati radeon 9250 128mb tv-out sema las vegas free email concorso forze armate giacomo puccini. manon lescaut execution in iraq dv rs mmc 256 tormentoni ciclomotores usados ariston bs 1400 programma ftp recupero scolastico krakau sam peckinpah 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.