I've got a domain name set up, and got a website on it - example.com, but I want to create a mobile version, so m.example.com. Not entirely sure how to go about this, I've tried editing the apache files, but not sure I've done it right. There's nothing in my httpd.conf file, and when I set up the initial website I used sites-available/default to change things.
So I've added
<Virtual host *:80> ServerName m.example.com ServerAlias m.example.com Document Root /foo/bar/m.example </Virtual Host>
But to no avail. Any ideas on how I should do this properly?
I'm using apache2 and it's on an Ubuntu 12.04 machine.