View Single Post
Old 09-14-2012, 10:33 AM   #111
CBebop
Junior Member
CBebop began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: Kindle
Quote:
Originally Posted by doctur View Post
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.

Last edited by CBebop; 09-14-2012 at 10:39 AM. Reason: Correcting code a little | Side notes
CBebop is offline   Reply With Quote