Enable WebDAV

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

maxtor maxline ata eye of the tiger mp3 volare air web libbero tz 431 musica de luis miguel lente tele god put a smile upon a smile comune di sirmione bella coppia toscana lcd 20 tv televisori lumix fz 30 mani prometeo finanziamento naked mode s frasi di buon compleanno felisia discoteca voli per mombasa riquadri con animali braun sveglia via di qua epson a3 ink lavoro orbassano nuovi drivers per 3dfx n trance emy cartolina di oggi desnuda fotos gratis fast clean energy 2000 mix 6 cucardas lacura code bez tebe driving force pro logitech breath easy blu nokia con radio fm kiko sexy mature gratis berlusconi conflitto di interessi lettore mp3 radio dvi 17 samsung monitor old mom jeans donna vita bassa immagini da vrally 3 su xbox il sergente rompiglioni mac donald rutanya alda x files 6 c 200 kompressor giochi acqua gallipoli campeggio bigliardo radeon 9600 agp 8x 256 mb ddr produttori articolo regalo nike air 2003 wireless optical desktop elite la tutela dell ambiente vendita computer pentium accoppiamento animali ram 256mb travelmate tv azteca puttane video gratis delfin iwan autoradio mp3 sd usb larisa nick berg viedo bna angelina tomb raider pussy pics norton ghost 9 0 cividale los videos futbol com km0 pick up auto km 0 golpeado tv lcd portatile con dvd usb la ragazza di pigalle moto gp3 xbox come together right now sweet il cesso groff kyil termometro per il vino forno a micro onde moulinex ar latte polvere fax laser color mitchell 2012 investimento cina formazione lavatrici rex da 3 5 kg norton sound mutuo conto arancio sindacato gilda la dodicesima notte dvd dual layer verbatim all men are mortal agp video in thermaltake shark black sitaki il commissario verrazzano master diritto gratuiti cheap pharmacy philips ringtones cheap xanax cheap flexeril cheap clonazepam cheap buspar americanairlines free jazz ringtones buy ambien cheap zithromax alprazolam cheap hgh funny ringtones buy norvasc cheap fioricet buy glucophage cheap ephedrine buy soma buy cipro jazz ringtones cheap tenuate free lg ringtones darvon online cheap propecia buy viagra cheap adipex free mp3 ringtones vocal ringtones sexy ringtones cheap darvon cheap bontril diethylpropion order klonopin free funny ringtones cheap carisoprodol replica rolex watches free phone ringtones pantech ringtones buy diazepam cheap alprazolam cheap ortho cheap metronidazole cheap valtrex cheap lisinopril free sony ringtones ultram online free downloadable ringtones free sprint ringtones rave ringtones cheap accutane lorazepam xanax buy clomid buy lipitor cheap flagyl free rave ringtones real ringtones cheap celebrex cheap sildenafil cheap flonase free ericsson ringtones buy skelaxin cheap sibutramine albuterol airline tickets albuterol online cheap norvasc mono ringtones free christian ringtones tenuate online synthroid online cheap soma cheap hydrocodone buy clonazepam cheap cialis cheap paxil buy ephedra midi ringtones free kyocera ringtones online zovirax free punk ringtones cheap provigil free blackberry ringtones cyclobenzaprine cheap dianabol free mtv ringtones music ringtones wellbutrin online motorola ringtones free jungle ringtones free cool ringtones diethylpropion online downloadable ringtones free phone ringtones zanaflex online free verizon ringtones cheap albuterol sony ringtones techno ringtones cheap valium 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.