Enable WebDAV

From AwkwardTV
Revision as of 18:13, 19 September 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

odori naturali smaltimento toner nuova fiat ulysse auto nuove copertina cd festival bar 2003 honda accord coupe montemarciano olga e i fratelli billi giocho stupido nuova opel vectra diesel auto nuove tuner tv per monitor rollon copacabana palace media vedio pc scenic p320 genta calender ex libris emanuelle frankee ex girl friend eamon magick piscina fuori terra masterizzatore cd audio epson archival gocce di meoria cadet elettrodomestici troni roberto cavalli jeans www alessandrapierelli it blak eyes www cartoline ch happysad la reforma agraria video sambame lg wd 1095 www welickeachother com jaguar bergamo usb dongle 802 11g hauppauge win tv pvr 150 hotel al sole aspire 1673 silverscreen lacie prezzo carburante sub infinity primus giochi on line biliardo bubble jr gufi di ceramica trust 41000 cori alpini gratis italiani belgacom net hotel b b roma nad t763 converse gonna benzodiazepine eax300sex td inno alla vita decapitazione soldato iraq video solo all ultimo piano opel corsa 15td la rubrica di costa e ale router belkin pren www teatro verdi it baiker masterizzatore lightscribe philips c66 epson iniare sms supercross 2001 escort lazio condizionatori portatile omas grand cherokee 2003 hesperia saint just a barcellona problem solving produzione letto traicionera mercato autoradio roberto heras vivo por ella bocelli file titanium campeggi adriatici e prezzi cd rw sony bruno gmunder lettori mp3 altoparlante lou reed a night with lou reed bin tere sanam download www marinamilitare it dx 1224mm ifed giochips2 firmware lg dv dragonball z budokai 3 ps2 www aceaspa it dacron pesca omaggi privacy spyware dvbt tv digitale terrestre e analogica icf m33rds quattro passi sul lenzuolo strong velodyne dd18 sandrine corman canzoni di m2o gps meridian color bub calimero dance www assistente tecnico com acer tv lcd 26 sonora dinamita digisette duo mp3 love is only a feelling pasion de gavilanes midi hp 5440 lavatrici 1600 giri drunk orgy satriano ya no me quiero enamorar lorenzo e marianna samsung dvdp245 ricetta dolce sardi tauro marcatrice gps cf antenna puig manuel dr mh 50 non ti voglio fermare macchina da zucchero filato jazira al torino barcellona biglietti aerei suono srl dvd 8 4gb r pc2700 333 1gb il santothe saint sanremo srl trieste fffffffff fiori brindisi giochi al chiuso per bambini coolstreaming us gioco sexy da vedere piccola canaglia rsmmc 512mb dv cash for structured settlement cavaliero nero baby h mere naseeb verbatim 50 riso nuziale photoshop elements 3 mac ita full ricetta torta saker viaria videocamere digitali con memoria sisal stampante laser minolta magicolor sandisk e130 incontri a bassano del grappa video shpat kasapi kit d link dsl g604t filamati erotici olio danese www timberland com km0 mercedes benzina d50 18 server hp proliant ml350 giornale di vicenza make and flake la signora amava le rose scuola omicidi gauguin rolex ghiera verde nickyjam palme epson 4990 photo giochi dazione letra da musica digale manchester ship canal www pioggia dorata it cordless aggiuntivi ospedali per ragazze madri www smack down jo liu love forever changes concert sports it cerchi bmw hilton head island coppia per gioco god save the quuen federazione italiana karting www camping calabria it adansonia polizia it levertov denise michelle viet love you madly cake differenza tra i sesso hoover st125 tutte le manie di bob il ricordo di dalida maturo e giovane o solo mio durezza vickers mp3 auto berardo paradiso www alldatazz com grandi filmati per grandi interviste download video integrale decapitazione hp 7450c 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.