Enable WebDAV

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

citroen livorno lettori mp3 mmc sd foto gallery amatoriali porno gratis mamae en quero zelda the wind waker borse grandi moda e accessori pornocity net rice-trasmettitore a v jeffers, robinson foto belle ragazze informatica napoli cane isola piacenza catanzaro giocattoli elettrici atlantis router adsl con firewall stampante hp a2 latte per cuccioli software etichetta cd asse da stiro aspirante forever yellow skies cranberries freecom media player 3 belle attrici christia spa dieta last minute digitale terrestre acquisizione video pigalle finanziamento lanciano il lupo mascherata reale ricevitore audio video philips caricabatteria per ipaq yamaha motif es7 adventures james bombs la casa dei mille corpi police python 357 jusuf tobey maguire screensaver disney hp (fa303a) sony cyber-shot dsc u50 kikiriki mazda 3 problemi new micra tumeur cerebrale fish mulinello traina wickler, wolfgang dvd s550 ondina calusco dadda dvd vcd hard disk maxtor esterni www gioie it dvd -r princo lettore di card bing karlstad marquez rovera ab fast www bibbiaedu it tv lcd 15 amstrad coglione borse denim tubi plastica firenze tarante primus hcs donne relazioni key of sat calendario di raoul bova top ten boghe divx 100 tempesta a liverpool irac multifunzione laser xerox maroons asus extreme ax850xt 2dhtv transex lazio i film di zemenova madonna concert maria cicirello stefan zweig video born to make you happy mardersteig, giovanni d g uomo pubblica istruzione older granny acqua di gio 100ml epson epl6200 l prestiti finemiro musica7 micro tastiera fuoco nel ventre batteria per motorola c350 l impiccato fucili da cecchino lg gsa4163b bulk toshiba ac adapter cartoline prima comunione riccardo luchena vilas, guillermo bolero ravel consumer promotion alpha ville brother - fax lettori portatili cd mp3 time to burn rasmus download free yitzhak rabin hp plotter a3 branko olar televisione 14 cassazione sez lavoro del 29 agosto 200 server amd lenti a contatto giornaliere musica scaricare pc hard disk seagate ux series jump superstars in una demo wireless discovery td el 100 lente eyetoy mutu con laura andresan v300 polar cardiofrequenzimetro f5 riquadratura rogue trooper anche su pc declarati de dragoste mambo craze dvb usb riassunto processo kafka mercedes trend goonies regalo labrador hammerfall. one crimson night canio buleria davis bisbal ipod 4g prestito lione marmorino torniai i giardini di marzo falsedades tres coronas paola giovetti mutt 7700 mp3 vivo per lei etnies cieco come una talpa copenaghen cose fare posie la mia amica speciale pulizia industriali usato furgoni toshiba sd 350e guarda video kaleidoscopio tavole rorschach konica minolta x60 wireless stereo tenda rullo atlantis monitor lcd www maria mazza it com the extreme marc jacobs emilio gadda stai con me venditti iomega 200gb prendi una donna dile che la ami frenata cartina geografica puglia temi esame abilitazione geometra dragostea din tei techno best sellers neruda pablo don gnocchi winmx scaricare sheena easton chocholina com kane, cheikh hamidou barbie a cavallo screen saver acquario stampante termica depo-provera im 6,7 ml 1 g gestion de la maintenance sacrifice lisa keys free xtv celeron 2400 frigorifero accendisigari casalecchio sul reno il re dei pagliacci hd usb mp3 hp laser color antonello de pierro giovanna missa criolla www tu juegas com ef s 17-85 foto serena gf finale amplificazione ed effetti bbloom cuore uno zingaro foto ragazze penisola sorrentina appartamento in albenga foto sborrate di gruppo miele s718 offerte di lavoro in puglia 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.