Enable WebDAV

From AwkwardTV
Revision as of 21:23, 29 August 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

piastre di cottura bordeaux, henry televisore schermo piatto a 32 pollici foto moglie esibizionista www tommyvee ef-s 10-22 morris il mondo dei cartoni duello nel pacifico nepalese hostage killed agenzia pubblicitaria la playa try tradotta accessori passeggino www cori milan mp3 desideri il linguaggio dei fiori fifa calcio 2004 en dag tilbage cursori animati gif peg-perego navetta video mutu a luci rosse gta libertycitystories laser ad eccimeri pista reggaeton on oublie jamais rien on vie avec macchina elettrica per pasta foto dei gatti piu belli archilochus gayangos, pascual de- ntsc pal www cannondale best of acoustic memory card lettore hard supporto auto pda mitac mio 168 la primavera hitleriana eugenio montale specchi del desiderio ricetta bimby ibiza annual 2005 benq fp931 19 lcd tft pellegrino di puglia mario bross hs 21w sesso e fica wwe survivor series un maledetto imbroglio carlo cracco libri summer madness marcela morelo musica star wars. clone wars. vol. 01 club azzurro suteki da ne darna udine manifestazioni calma e sngue freddo saint-michel orata epson t041 air classic bw lumix 8 maquillaje artistico antonello de pierro calendari donne sean pul ww gov cba ar software videoscrittura macchina a vapore nikon d100 petula clark. this is my song - the ultimate portrait of petula clark concorsi miss 2004 flash ttl coralia dahab z9 yamaha dule el amor morti sospette copertina cd saro migliore chicken little amici per le penne wharfedale wh 20 acer mp3 flashstick 512 km0 alfa romeo 147 2005 diesel auto km 0 nuove immagini per legend of kay claudia de falco breathe tezza verona cerco maschi ventole raffreddamento case prato citta anoressia e bulimia foto mogli si estoy facil to mei oh boy mp3 http my caledonian ac uk liviu liceo e pascal rover 25 1.4 epson stilus color b c d e f g h i j k l m n o p q r s t u v w x y z prestito artigiano ristorazione scolastica del comune di ve traduzione sacrifice nero.2 magik lnb la fine la capra di u saba henry kissinger duello nel ventre della terra volkswagen golf 2.0 tdi sportline subsonica colpo pistola calendari feticisti divinita e personaggi mitologici golf 1.6 sportline acer 16 les amants de saint jean iceberg profumi donna da 32 pollici tv televisori lcd immaggini di bellissime studentesse amanti nelle tenebre red ligth disco zone o zone porno film guerlain vetiver olivetti pg404 jessemccartney it widze czarne oczy minclip com grandia 2 testo canzone thank you di jamelia miele wt2670wpm gianni va veloco eleni jane carrera pro formula gioco tavolo online orologi zenith microfono speaker e cuffie www versilia com berlusconi profumeria foto colin farrell nudo jerry lopez surf riders frou hero last minute it nathalie cardone hasta siempre fotodi donne con calze math games timex bodylink 5e671 plasma philips pixel plus uv la baita caricabatteria stilo medicina ginecologia aborto telefonini umts vodafone troppo vento cooler master 462 rice-trasmettitore audio video thomson televisori 32 pollici maeco masini lei prosperosa cartoline di natale bas en joel boil plato con cereal assicurazione pisa lift me up kassav aficio 551 braille vitaminic srl ministero salute ecm it django spara per primo www lycos nad c272 pedaliera joystick foto sexy alessia ventura ink jet printable cd giugno 84 tiziano ferro donne piu anziane peluche diddl awm 161 sexy latina lodi yahuu derattizzazione vr divertimenti in calabria via goito asti volkswagen golf yachting singoli 2004 tom tom mappe automarket lo sguardo del non amato libri rosa bianca nvidia leadtek concorso guardia finanza matrice accessori audio video buscar el juego de super mario land surdato nnammurato funerali lady d ragazza pinerolo georgia shopping panama 2 conver sculacciate ragazze godo e sudo 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.