I installed a LAMP server and set up my domain name to resolve to an appropriate IP address. However, when I connect to a server with it's domain name, it is with an IP address in an address bar. My /etc/apache2/sites-available/default looks like this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin ...
ServerName mydomainname.irrelevant.to.the.question
DocumentRoot /var/www
...
I thought that was supposed to fix this behaviour. What else is required?