beta@landlubber:~$ sudo apt-get install apache2
beta@landlubber:~$ sudo chown -R beta:beta /var/www/
beta@landlubber:~$ sudo chmod -R 777 /var/www/
beta@landlubber:~$ mkdir -p /var/www/dooqee
It seems that a local folder, e.g., /home/beta/Documents/localhost/rails
doesn't work. I guess that's because apache2 doesn't have permission to read user files. I don't quite know how to set that up.