Enable WebDAV

From AwkwardTV
Revision as of 16:01, 23 September 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

gate keepers link lodi rassegna gastronomica giochi aerei sd 512 video dell italiano decapitato ignis frigoriferi windows media player 9 cerchi ciclismo graduatoria 6 vfp1 page merlin u530 umts fotos gratis de sexo anal ardiente lettori dvd e vcr charta 77 furgo url index cellulare fotocamera dragostea din tei playback heli attack 2 norimberga ristorante vodafone connect card umts pc awm 7100 pvr 150 mce olimpia splendid unico 11 he site index canon 2470mm f 2 8l terrore cieco study abroad in italy losing grip pps power point extreme cavi mouse vini sardegna etruscan piano digitale sesso saffico indesit wixl126 all games that starts with the letter b il faut savoir capitan harlock disc 4 canon np 6521 calendari top scarpe sexy page index elio dal the fabbrico utzeri gianni site programmi gratuiti ragazze a malta chi vuol essere milionario gioco site valentina trans cyking lg dub syndicate cronica de una muerte anunciada montaggio industriali gaet questo mondo proibito aeroporto firenze paola lenti carlo bruni final fantasy foto sexy index jenny lee nolen frio cabo calista flockhart braun clean map home sbloccare videofonini 3 eugenio bennato taranta power blerina palombaro jurame piscine pvc homepage il dottor antonio www pinnacle liquid home maledetta primavera us robotics wireless print gisborne plugin multichanel vibrat macchina bolle di sapone madigas t flash motorola gioco pokemon royaltek bluethooth botti rovere per vino luomo di saint michel nike rival emulatore xbox url religione mussulmana modelli moto Troie sborrate Lino banfi Hashish olio Isola rossa croazia Corpetto rosa paillettes Lampadario Kelly medison Foto album Norton antivirus 2003 italiano Fuseaux Video clip porno Lula 3d Silvia saint video gratis Winx solo gratis Anagramma frase Gucci scarpa donna Gonzo free blow job movie Orologio seiko Puttane in figa Modelle italiane Foto porno con animali Piantina foggia Christina milian Tv porno Attrici porno Trombate con animali pornomotore squirting cytherea Vacanza natura Bill consolidation service Assitalia Sanpaolo imi spa Scooter usati Sfondigratis it Motorino it Jennie garth Traduzione latino Libri riassunti Ospedali Gilet omologati Repubblica dominicana Sito amico evenca Cumshot free Arredamento design Prestito avellino online Video jessica fiorentino Albergo 5 stelle stoccolma Footlocker Famiglia cristiana www artcurel it Finanziamento tasso zero Porno gratis con animali Extreme insertion Finanziamento 2004 regione molise Software gestione fatturazione Donne grasse it Paola senatore Pesce tropicale Centro jesi arte contemporanea Portobello Cucine componibili Canestro basket Insana follia Corso salsa novellara Viaggio zanzibar Abbonamento internet gratis Negozi hardware Troie pompinare Bper it Auto usata palermo Download free aquarium screensaver Caloria bruciate ora ciclette Federico moccia Because of you testo Grimaldi crociera Test d amore Coltello cucina Lisbona vacanza Culotte sexy Servizi managed hosting Venezia hotel prenotazioni Vino doc Telefilm paso adelante Skiathos Home mortgage loan rata Spartito litfiba Cinesi troie Scampia Messico cose fare Glory hole Cucine rustiche Immagini romantica Polizza rc auto Foto vecchie fighe Mini clip Lifting cosce Commercialista roma Gq ferrari Pisciata Cartuccia getto inchiostro Uno zingaro felice alex britti 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.