Reverse Proxy for CouchPotato, Sick Beard and SABnzbd
Overview
In the case that you are running CouchPotato, Sick Beard and SABnzbd on the same server, you are probably used to accessing those services by changing the port number in your url. e.g.:
Annoying, right? Using CNAME entries and a reverse proxy, you can access these services at a much simpler URL. e.g.:
Setup DNS
With your own DNS server
If you are running your own DNS server, create CNAME entries, pointing 'nzv', 'tv' and 'movies' to your actual server's hostname (in this case: 'usenet01'. I am running BIND on an OpenBSD server:
With your hosts file
If you are not running your own DNS server, that is fine too. Update your /etc/hosts file appropriately:
Setup your reverse proxy
I am running apache on usenet01 in order to proxy requests to 'movies', 'tv' and 'nzb' to their equivalents on localhost running on their respective ports.
Next, you'll need to enable the appropriate proxy modules:
Finally, restart apache to load in the new config:
Make sure it works
You should now be able to enter 'movies', 'tv' or 'nzb' into your web browser and be directed to CouchPotato, Sick Beard or SABnzbd respectively.
A word of caution: Some browsers are tricky in regards to accessing non-fully qualified domain names. If 'movies' doesn't work, try 'movies/', or 'movies.gnulnx.home' (in my case as gnulnx.home is my local domain).