View Single Post
Old 07-05-2010, 03:36 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,522
Karma: 8065528
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Joe McPlumber View Post
I want to have my library available all the time, and since i already have Apache running all the time i wonder if i could make an alias for (wherever the heck the content server root is) rather than having two webservers running at once.
Itimpi has the right of it.

Calibre does not serve static pages, but instead implements active content. Each page is generated on demand from the database. This means that in apache terms, calibre must be a module or support CGI. It isn't the first and doesn't do the second.

It would be possible to build a CGI interface to calibre so that it could be integrated into other web servers, but it wouldn't be trivial to do.

As itimpi says, it might be easier to adapt cherrypy to run as a module. The page http://www.cherrypy.org/wiki/ModPython discusses how one might approach this. Again, the implementation isn't trivial (calibre's initialization would change a lot), but it should be possible.

Perhaps someone with the need would be willing to take on either project.
chaley is offline   Reply With Quote