I have my Slackware Linux box connected to the outside world via a Speedtouch router. The router firewall is set up to allow incoming ssh and http connections to the Slackware box.
Currently my ADSL is UKFSN/ENTANet and I have a static IP address, the domain name is 84-45-228-40.no-dns-yet.enta.net.
I have a number of more useful/memorable/long-lived domains registered, some of which are hosted and some are not. Currently I have isbd.ltd.uk registered with justthename.co.uk and HTTP requests are redirected to 84-45-228-40.no-dns-yet.enta.net. This works sort of OK in the main but it's far from perfect because my Slackware box doesn't really know whether it's 84-45-228-40.no-dns-yet.enta.net or [www].isbd.ltd.uk.
What's the easiest and/or neatest way of sorting this out? Obviously my basic requirement is to make my slackware box think it's isbd.ltd.uk and to hide 84-45-228-40.no-dns-yet.enta.net completely.
I currently have www.isbd.ltd.uk in the following places on my slackware system:-
/etc/HOSTNAME /etc/hosts at the appropriate private IP address /etc/apache/httpd.conf as the ServerName value
However this causes various minor issues and infelicities, for example TWiki complains about a mismatch in the HTTP_HOST environment variable when run locally. I'd also prefer not to have to put 84-45-228-40.no-dns-yet.enta.net anywhere in HTML etc.
So, what's the proper and/or best and/or easiest way to sort this out? It's really only the HTTP issues that I want/need to resolve, can Apache virtual hosting do anything for me - I suspect not as that is only if I have multiple IP addresses *actually* resolving to my machine. I don't really want to go to the extent of making my Slackware machine host isbd.ltd.uk completely as that involves DNS, MX records and all sorts of complicated things like that. I just want 'transparent' forwarding of HTTP requests.