Quote:
Originally Posted by centuryx476
There has to be a step by step guide some where here on the forum that I cannot locate.
I have IIS 8 installed on my Windows 2012 server. I also have calibre installed and running the server to access my books from outside my network.
In addition I have bought my own domain name and hosting myself.
I want to be able that when I type for example www.mydomainname.com/Books it points directly to the calibre server.
I cannot seem to figure this out.
Is there any where I can read on how to do this or a place that can lead me to the right direction.
Thanks
|
The "/Books" part has nothing to do with DNS. That is part of your web server config. DNS is involved with (some of) the parts between the // and the first /.
You probably will need to configure a reverse proxy based on the file part. How one does this in IIS is a mystery for me, but google should help. You will also probably need to use calibre's --url-prefix option to tell it that the file part of the url begins with /Books.
Assuming that you have control of "mydomainname", it might be easier to use something like
http://library.mydomainname.com/ to avoid the URL rewriting.
Another way to avoid url rewriting, reverse proxies, and new DNS records is to use something like
http://www.mydomainname.com:9090/. This allows you to configure the calibre server to listen to that port and avoid IIS completely. Of course, you will need to do all appropriate port forwarding and firewall opening. I prefer to run a reverse proxy even in this case just to isolate the calibre server from the 'net, avoid open ports, and limit the paths the bad guys have into my machine, but you might not care about any of that.
You won't find a step-by-step guide anywhere. The process depends very heavily on too many local configuration details. The best you will get is discussion of particular cases, again found using google.
Finally, listen to @adoby. In the vast majority of cases an external domain name reference to a machine on the same internal network as the referencer will not work. The external reference will give the external IP. An internal reference requires the internal IP. He gives you several ways around this problem.