Enable WebDAV

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

www sottotono it settimo cielo film www campionatoprimavera com traduzione ultima canzone maroon 5 temperature atmosferiche del 7 giugno 04 mini balilla palmare axim x50 masterizzatore iomega www markiza sk radiatore elettrico what dreams are made of banca marche tomografia computerizzata trebol con hector y tito incontri annuncio veneto vedere fica www sadomaso it phonocar tv garmin etrex legend c salopette uomo www videosexe com video decapitazione ultimo ostaggio amer trattrici agricole www clarens com www iberostar com do video mourir demain pronto soccorso 626 armadietto destinos cruzados gestione sito web filmati decapitazioni ostaggi irak video allenamento pele chicco altalena scale legno proposte ministero dell istruzione 2003 www fi nor il puntinismo tunnel carpale tony mouzayek www biniviaggi it hudson hawk www fratelli sartori it www unpostoalsole com anna falchi porno ricetrasmittenti alan vilia grande fratello scandali sports card organizer 1.0 luoghi scopare www puntorojo com pe www camping baia verde it porno americano berg killer videos666 con ultimate spiderman video jack hensley spartiti dangelo nino biglietti falsi vasco jack lemmon giochi sexy per sole donne elezioni sezioni messina usb ports ti sposerei perche album ricordo terapia antibiotica in ospedale tracce concorso religione cattolica blutooth speaker e cuffie vittor dupond, patrick fotografie erotiche gratis la minorenne cheap ephedra vigrx free mobile ringtones ortho sony ericsson ringtones online nexium alprazolam online cheap ortho t-mobile ringtones fly ringtones cheap zyban rock ringtones free punk ringtones sagem ringtones cheap atenolol mono ringtones tenuate online rock ringtones weird ringtones free jazz ringtones cingular ringtones americanairlines cheap norvasc animal ringtones cheap pharmacy adderall online oxycontin online buy flagyl free tv ringtones free cricket ringtones diethylpropion online philips ringtones vicodin online free animal ringtones propecia online cheap klonopin diflucan online free animal ringtones cheap zovirax cheap diovan free punk ringtones buy darvon cellular ringtones cheap paxil cheap albuterol cheap zanaflex alltel ringtones samsung ringtones free downloadable ringtones free tmobile ringtones jungle ringtones sildenafil online free mobile ringtones cheap diethylpropion xanax cheap bontril midi ringtones free nokia ringtones oxycontin online cheap flexeril cheap hgh online wellbutrin cheap tamiflu cheap carisoprodol free rap ringtones zocor online buy ultram buy bontril buy celexa phone ringtones 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.