Quote:
Originally Posted by dchoe
Hi, I have calibre running on a box that's also already a web server. Rather than also running the content server, I would like to just setup another virtualhost to serve the calibre content. The server is a mac running apache.
|
Calibre is a full server, not an apache module or CGI interface. Because of this, you won't be able to make calibre into an apache virtual host.
You have three choices:
1) use a different port. All of your server's DNS names will work to access calibre. This is the standard configuration and dead-easy to set up.
2) get a second IP address. Bind apache to the first one, and 'bind' calibre to the second one. Calibre does not support IP binding, so you will need to do port translation in your firewall (2nd-ip:80 -> 2nd-ip:calibre_port). Of course, you will need to set up DNS names for the second IP.
3) Use something like Squid in reverse-proxy mode and vhost directives. See
http://wiki.squid-cache.org/SquidFaq/ReverseProxy. Only the vhost(s) configured will be able to access calibre.
#3 is probably what you want, but can be complicated to set up.