Enable WebDAV

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

prodotti monteil classifiche house motorimania keys sexview mp3 compatibile mac west palm beach minigonna pelle stivali gli alunni del sole sesso 3d bebe montagna bikkembergs 37 okipage 10ex toner tetta giganti immagini realismo playboy m minc roccaforte monica www lotto it panasonic celulari configurazione v3i radio mp3 portatile secca codes kodak easyshare dx6490 kdc w5031 kira ninus panche multifunzione fitness comcast marco mazzaroppi biagini sebastiano buggles the selecter murder un ritorno alla cina feudale marlis gif animados de futbol test pregio difetti paris hilto porno teens guacho la rush sdram memoria ram 512 galopera mda salutre e benessere cd belly dance muffin hitachi 80 5400 ragazze cinesi it leaving newyork yusmart 19 ray charles genius loves company mauro nardi ricordi the pink panther s theme donde estas princesa erreway amore a ventanni autodesk autocad the punisher azzione fega kavkaz staffa a muro per lcd fantasma opera robertobaggio it concerto di sogni brandy the boy is ine scheda madre asus a8v netcaptor gold composizione suoneria cellulare italian properties tps viaccess codice golf tdi 110 volo chieri ja rule feat ashanti r kelly wonderful x raggi mode hastasiempre porcellone hotel wilson tarallucci negozi abbigliamento telefilm baffi vaio desktop vgcv2s oltre il sahara hamlet zelig drive 4gb masterizzatore esterno lg star wars battlefront ii si gioca ai classici delle carte su pc hauppauge wintvpvr 150 fuga di mezzanotte filatura emiliana network adapter accessori ps2 console female orgasm triciclo neonati video gratis forza chiara donne mature anni50 gigaset c250 siemens cordless sodimm 512 secondaguerramondiale tenis hitachi deskstar 250 gb breil stone festa donna mimosa tradizioni cordarone iv 5 f 150 mg 3 ml compagnia navigazione concorso speaker bacio in bocca cavallo magazine striptease dancer mercedes 200 elegance rafe valmontone peliculas prono gratis katjakean recupero crediti messina calcio foot bal razza violenta macromedia dreamweaver 8 think about you fiordaliso giochi al telefono elettronica biondo libri ornellaia le volte tesine su hubble www my teensex com sony wega 16 9 dvd con karaoke renata sopek tine niente in comune kessen rebecca gleeson sony 100 hz panca weider 435 case provincia pistoia liero domiso memory stick sony pro camera fabriano lacie ethernet disk mini 500 verbum panis volo aereo milano lampedusa multipla natural power dynamic km0 fiat sw benzina auto km 0 i cavalieri fermarono i cieli video camere inteligenza puma esito cat leonardo (astronautica) spartiti rita pavone insonorizzazione tom tom power charger the beatles the beatles with tony sheridan the beginnings in hamburg dio va riesa hilton sisters traduzione gratis online pantaloni uomo multitasche texas flood prada pelliccia princess metal vivai bg marcha turca mozart una celeste nostalgia parassite eve 2 mintaka musica classica ascolto neo2 k8n acer 1300 ram raso bordeaux vojeur mario bros palermo porno mai dire web tanning bed caccini musica nel cuore p004 filegrabber g3 live in denver joe satriani steve vai yngwie malmsteen resident evil outbreak file 2 breed 77 ride wit you testo come tu mi vuoi base per nokia 6610 eclipse del corazon depuratore news in ucraina discoteca la dolce vita forio d ischia offenbach midi le vie del peccato memoria ram kingston 512 mb microscopio binoculare marco polo shop magazine subscriptions gioco al giardino asus n6800gt barist ed wood top model piu ricca la belva del colorado loshow 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.