Enable WebDAV

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

nice ass viaccess cod hli stampante ink jet picturemate tesine gratis per esame di stato ufficio alessandria www rotin com gigione video potemkin cd di blue ragazze da conoscere maglia a v a riva o arriva notebook processore centrino processori amd sempron 2600 calzature bambini lettori dvd combinato laboratori sit outtrigger fisting vaginale otago terrorismo in italia pod guggle tafi monster dog aliyan costruzioni lego duplo http b2b private com una voce nel tuo cuore duplicazione cd dvd logitech harmony 885 trapani venezia biglietti aerei bomboniera milano kristiania volo low cost napoli rosetana calcio televisore plasma lg 60 dvd r tdk printable defender castle fisio cellulari philips top 10 1985 cristina aguileira cuore prigioniero laisse parler les gens pizzerie firenze collesano sharp xv-z90 nh amsterdam centre hotel voi assassini foto di loredana lecciso fiat bravo 1.9 www laurax com la casa sperduta nel parco black e decker cycl ramundo maria grazia celebrita nuda gazzettino, il- filamti camera innsbruck scattava herson www regione finanziamento genova nina sky y feat jabba the lion sleeps tonight spartiti forza venite gente riparare il gommone f.b.i. contro cosa nostra coppia marche 45 39 celeron 330j lapiedra de anamara canon 4200f scanner pc2100 so dimm obsesin webcam usb con microfono online personal ads ma ia hii lettore memory card sd ente turismo spagnolo us and them marcello benedetto sigla campioni nel cuore temi svolti olocausto new car prices gps vista hoover lavatrici 3 kg dfi lanparty nf4 ultra d il cavaliere misterioso film dvd laurea ringraziamenti la bella americana escort women jolly mask volo low cost milano new york mercedes livorno borsa per dvd in alluminio backstreet boys incomplete schermo 42 pollici miegel, agnes my progressive crezy vittorio klostermann prince of persia 2 trailer 5 asus mypal a730w il re esteso panca nordictrack eros romalive tati superbed sci montagna virgilo gioiellerie hotel sayonara little lolita mardy grass liberty a messina meriva cosmo 1 7 cdti dannunzio. i grandi della storia rex tt 08 zorro alla corte di spagna dune 2000 volo los angeles livre de chevet il forte delle amazzoni ufficio entrata foto di angela cavagna ser mas que tu amigo coppia val brembana separazione legale polti vaporetto eco pro 3000 housekeeping pazi skime spavas biliardo semplice piani tariffari wind indagini di mercato nx 8220 hp 740 wireless optical mini mouse usb godavari, west- ragazza pinerolo isu bust and groove asus a3527glh polti forever 1000 www rbs6nations com rolex usato torrie wison nuda rx v450 recollection 2. relapse video collection figli di pitagora litle tony ricorso sony 28 crt philips dvdr1628k 00 e vado via gsmk cryptophone 200 usr y 305 k 305 l 305 yo luomo della croce un altro ballo video ocean d290 mini ipod rosa 6 gb xbox rally televisione monitor pergotenda napoli voli nizza milestone srl ramla capareza moda accessorio pentium 3 6 antenna per digitale terrestre accessori sterilizzatore biberon ghisalba dragostea din tei haiducii vs gabry ponte en dag tilbage ferramenta per letti videos de eamon sunny negozi per liste nozze video di sesso della spears hotel a disneyland paris incasso 30 cm piani cottura winy com i miei sei forzati www ferrero regali it nike basketball shoe capa rezza vengo dalla luna jail voli irlanda altoparlanti senza fili golf 1.6 sportline kit gps per pocket pc radiografie scanner siti gratis amatoriali nudi anziani devoto oli dizionario lingua italiana revamped i-mate pocket pc gsm gprs the king of the golden hall usb 2 0 pcmcia marano esami avvocato catanzaro 2004 bluetooth pcmcia hamlet 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.