Discussion:
is it possible to set lighttpd root directory on a usb fat32 drive?
knowvb
2008-01-28 13:57:22 UTC
Permalink
Hi Everyone.

Is this possible please?

At the moment it is set to /opt/share/www/lighttpd

But this is on the 2gb usb flash stick that i have unslung to.
I still would like to keep this 2gb unclung stick but would like to tell the
web server to look at a folder on my hard drive.
If this isnt possible could i somehow mount a usb fat32 drive so that a php
script running from the unslung flash drive could display the contents of a
folder on the external fat32 hard drive?

Many thanks

k
--
View this message in context: http://www.nabble.com/is-it-possible-to-set-lighttpd-root-directory-on-a-usb-fat32-drive--tp15135834p15135834.html
Sent from the Nslu2 - Linux mailing list archive at Nabble.com.
knowvb
2008-01-28 14:35:35 UTC
Permalink
Solved the php part. still need to try changing the lighttpd root path

I just typed ...
mount /dev/sdb1 /mnt
and then altered my php script to look for media in /mnt/music
Post by knowvb
Hi Everyone.
Is this possible please?
At the moment it is set to /opt/share/www/lighttpd
But this is on the 2gb usb flash stick that i have unslung to.
I still would like to keep this 2gb unclung stick but would like to tell
the web server to look at a folder on my hard drive.
If this isnt possible could i somehow mount a usb fat32 drive so that a
php script running from the unslung flash drive could display the contents
of a folder on the external fat32 hard drive?
Many thanks
k
--
View this message in context: http://www.nabble.com/is-it-possible-to-set-lighttpd-root-directory-on-a-usb-fat32-drive--tp15135834p15136332.html
Sent from the Nslu2 - Linux mailing list archive at Nabble.com.
Scott Ruckh
2008-01-28 14:37:54 UTC
Permalink
This is what you said knowvb
Post by knowvb
Hi Everyone.
Is this possible please?
At the moment it is set to /opt/share/www/lighttpd
But this is on the 2gb usb flash stick that i have unslung to.
I still would like to keep this 2gb unclung stick but would like to tell the
web server to look at a folder on my hard drive.
If this isnt possible could i somehow mount a usb fat32 drive so that a php
script running from the unslung flash drive could display the contents of a
folder on the external fat32 hard drive?
Many thanks
You can use any directory you want for every web site you host. You just
have to modify your lighttpd.conf file (see the examples found on the
web). Then have lighttpd re-read the .conf file for the changes to be
loaded (probably the easiest way is to stop and start lighttpd).

Loading...