Originally I had mydomain.com.au, but then I let it expire as I cancelled my abn (Austalian Business Number). After that I started using mydomain.info instead to host my wordpress site. Recently I had my abn re-instated so I have mydomain.com.au back again finally. I decided to do a permanent redirect from mydomain.com.au to mydomain.info, and I put this in /etc/apache2/sites-available/mydomain.com.au.conf file: <VirtualHost *:80>    ServerAdmin me@email.com    ServerName mydomain.com.au    RedirectPermanent / http://www.mydomain.info/</VirtualHost>It looks the same in /etc/apache2/sites-enabled/mydomain.com.au.conf also. I reloaded apache2 without error and now I get this error when I try to access www.mydomain.com.au either locally or from an external IP:Database ErrorError establishing a database connectionI decided to test whether the redirect was working by putting a dummy html file in /var/www/mydomain.com.au. I reloaded apache2 and tried mydomain.com.au again. Still getting the database error.So now I'm thinking it's a problem with wordpress. Does wordpress not allow you to do this kind of thing? 
Redirecting a domain to another that hosts a wordpress site, getting database errors
redirects;wordpress;apache2