D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: tnsage on December 15, 2010, 04:03:06 AM

Title: Lighttpd Config Problems
Post by: tnsage on December 15, 2010, 04:03:06 AM
OK, guess I may come across as a little slow here, but I have used Unix some years ago, and the dreaded VI, but I seem to be unable to work out the paths. Below is what the original conf file has

cd /ffp/etc                             //change directory to the /ffp/etc folder
cp examples/lighttpd.conf .       //copy the lighttpd.conf file from examples into current directory
cd /mnt/HD_a2                      //navigate to /mnt/HD_a2.. our shared drive home..
mkdir logs                            //create directories for the logs

server.document-root = “/mnt/HD_a2/share/”
server.upload-dirs = ( “/mnt/HD_a2/tmp” )
server.errorlog = “/mnt/HD_a2/logs/error.log”
accesslog.filename          = “/mnt/HD_a2/logs/access.log”

Now, we are ready to start off our webserver:
cd /ffp/start                                  //navigate to the ‘start’ folder.
chmod a+x lighttpd.sh                    //grant execute permissions to all
sh /ffp/start/lighttpd.sh start         //start up the web server!

When In FTP, I have set up from Volume_1 a folder called www with sub folders for pages & logs etc

/ # cd /ffp/start
/mnt/HD_a2/ffp/start # sh /ffp/start/lighttpd.sh start
Starting /ffp/sbin/lighttpd -f /ffp/etc/lighttpd.conf
2010-12-15 11:50:45: (configfile.c.1167) base-docroot doesn't exist: Volume_1/www/pages/
2010-12-15 11:50:45: (server.c.584) setting default values failed
/mnt/HD_a2/ffp/start #

What or where am I going wrong

Help

Tim


Title: Re: Lighttpd Config Problems
Post by: dosborne on December 15, 2010, 04:18:02 AM
In lighttpd.sh, do you pass a parameter for the config file path? If so, is it correct?
Title: Re: Lighttpd Config Problems
Post by: tnsage on December 15, 2010, 04:26:53 AM
I have no idea, I can only guess that I am pathing the file wrong, so I hope someone can correct my path error, then I can see if I can start running a web server from my little box

Tim
Title: Re: Lighttpd Config Problems
Post by: tnsage on December 15, 2010, 06:08:51 AM
Well, all problems sorted. I had messed up my paths.

I used telnet and gradually changed to the directories, and realised the error of my ways.