Calibre behind apache server sometimes returns 'localhost' URLs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The issue has been present for as long as I am running a Calibre server which is since 0.8.x. Currently running calibre-1.6.0.
I run calibre-server on Slackware Linux 13.37. The Calibre server is proxied behind an Apache server using RewriteRules.
In the interface exposed by Apache, most category links work properly (Newest, All books, Authors, ...).
However, the following three category links are not working: Virtual Libs, News and Searches.
When I click these, the base part of the URL which is returned to the browser has changed from the expected "http://
An exaample of an URL which the browser is instructed to load is:
http://
I have been browsing through the calibre code but I am not knowledgeable enough to understand the flow of the HTTP server.
Here is my configuration:
Apache's httpd.conf rewrite rules (leaving the SetEnv lines out does not make a difference):
RewriteRule ^/calibre/$ http://
RewriteRule ^/calibre/(.*) http://
RewriteRule ^/calibre http://
SetEnv force-proxy-
SetEnv proxy-nokeepalive 1
The calibre-server startup commandline:
calibre-server --daemonize --auto-reload --with-
The server URL exposed by Apache is "http://
I do have a virtual library defined in Calibre, and I am fetching a news source every day. I do not have saved searches.
Would be obliged if you are willing to look into this.
Cheers, Eric Hameleers
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased