Help with Ubuntu Server Sharing Files Online

Associate
Joined
20 Sep 2003
Posts
2,378
Location
Scotland
I have setup Ubuntu Server running apache2, PHP and mySQL etc. What I want to do is plug in an external drive and share the files from that drive. Allowing easy access to the files via a web browser.

So at the moment the default directory is /var/www/

Ius there I can easily link to an external drive from within that folder?

Cheers
 
You could use a symlink. Course, you'll need to allow that in the apache config if it isn't already.

ln -s /var/www/external /mount/point/of/external/storage/or/sub/folder/within

You could always remove /var/ww and mount your external storage directly there.
 
Will try this when I get a chance but last night tried booting my server and it freezes on boot up stating:

Checking battery state

So will need to solve that first :(
 
Back
Top Bottom