Quote:
Originally Posted by doctur
Hey Guys,
Any news about how I can have the DB outside the Webroot? I have all my ebooks on the NAS and I have mapped it to a drive in the Windows server. The main issue is that the software is not able to read outside webroot...
My original comment is the last comment on the previous page...
Thanks!
|
Give this a try, it will "Mount" the directory you want inside your webroot and it works for things like vsftpd which also doesn't follow symlinks.
Code:
mount --bind /dir/where/files/are /webroot/directory
And to make it persist on reboots if it works for you, you can add something like this to your FSTAB:
Code:
/dir/where/files/are /webroot/directory none rw,bind 0 0
Side Note: Been using it on my VPS in conjunction with dropbox to feed books to my 3G enabled Kindle. Works pretty darn well, though there are some silly issues with the Kindle browsers being funky sometimes. Nothing that really bothers me though. I ended up getting annoyed with lighttpd and just setup nginx and it works like a charm.