Enable WebDAV

From AwkwardTV
Revision as of 07:17, 11 September 2007 by OikB34 (talk | contribs)
Jump to: navigation, search

fotomodelle 2005 cerco trans per scambio foto jamaica pryngeps la nave degli schiavi boxer roberto cavalli www sabervivir es files absat seca file seca1 baby monitor color von lcd philips 17 allison napoli ora sublime jeanette lago di garda alberghi manara il gioco 4 blueprint 2 1 marci funebre crash test acer 1522wlmi rebela ortisei val gardena the rasmus in the shadow maxtor hd serial ata acernotebook travelmate 3202 ethernet usb www vigilio mewmew amiche vincenti niki fleury telecom telefoni capitan sparviero penna registratore amica della mia ragazza will smith man in black ink m10 esecuzione al braccio 3 decoratore krzysztof cieciuch assistenza napoli la necrofila psc 1610 kenwood km albergo mirabilandia wma dance the o c stagione giuseppe augurio lc32gd1e sharp ambisonics speakers video free eros racconto erotici incestuosi rita iannacone immagini di fate e fiori palmone e2 cast titanic sanacore nuova audi sportback dsg diesel auto immagine locandina film oscar 2005 www desiderata it www radiomaria it lingayen pulp fiction theme diiodo dent speedy gonzales mireille mathieux calcio serie c il prigioniero di guam confezionamento bigiotteria usb instant tv www porsche comm museo del louvre free screensaver bubblin dei blue merry go round wallstreet k mario express bialetti kotto basse volo segrate summer sushine benq triband fiat punto 60 amd athlon64 3000 venice socket 939 caudek raccordo ferro mavi testo di notturno di mia martini sex movie tim ricarica cellulare the simpsons climatizzatori toshiba juliet huddy neonati denti garbo stampanti brother 5140 rubias puntali moto naked movimento ermetico breve incontro tommy vee f f video porno gradis d g profumo uomo garland judy shiatsu medisana housecall virus scan firestarter terence hills ragazzo settimo milanese cartoni sexy codice sblocco lg u 8110 microsoft iis lockdown tool clip art laurea fashion consulting hifi compatto toshiba mk4025gas veritas backup exec klipsch rvx54 emilio gadda please bleed dxball il processo edilizio supermercati sma at 325 progettazione consulenza vendite aziendali love hira succo marcio mizuno vi best of van morrison vitamine donne con cazzo tempera rey619 kati garbi vivienne westwood dj isaac nobody duplicazione cd telefax laser clube do candango televisori lcd lg 20lz50 las plantas del peru windsurf il vento nelle mani volo boston filmati storici batteria philips azalis astra gtc km zero burt bucharach saab 9000 ab crociere don t make me pay tomu uchida vieille salope ati radeon 9550 128mb dvi super tit ocm porte i gioielli della corona elios bebe confort voli verona michael buble xblade blue ondina thermaltake ducting mod al malecom televisori sony 42 valeria parrella lagrimas negra giocala top model mariacarla gmax franck adventure alessia fabiani s buona domenica tugjob sony kep42m1 s mpeg pamela anderson code tps viaccesse p5wd2 wifitv anne gwynne nuvola bianca mate sp3 video killed the radio star bikini beach carrier condizionatori e ventilatori something pretty di patrick park breil spot tv come togheter garmin ique 3600 palmare le calde labbra di emanuelle collegio zoio de lua foto orgie bisex mai dire mai arocco mies ultimate nutrition massive whey gainer terraluna my herat will go on una donna tra due mondi ml oki stampanti outlook range rover 39 vogue zante and laganas tesina anni 60 vendita dvd r vergine occasione chevrolet corvette mercedes ml320 sissoko believe gigi d agostino gigi goodnight www voli alitalia com scarica video porno mouse tastiera microsoft hotel economici napoli laureta mia fighe animate trio chicco alaska vita mara venier canon xeed sx50 michel pfeifer maschera nera mini camera hit mania dance inverno 2004 intimo uomo navigare dmm 1g www gazzettaufficiale com doar tu microsoft cambia strategia per il giappone il grande matador monika schnarre lectura dect 311 cordless griffa libri taekwondo sport olimpico lacie databank 40gb dal profondo lavorazione infisso legno it panasonic sahe75 to nie ja bylam ew 261 klaus mann corse cavalli once upon a time a december turk maneurop citroen voli djerba hotel isole eolie trans e viados kit home theatre divx buffy spike scopate con donne more monna lisa gwm boy scope hoover agriturismo empoli 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.