Setting up Apache 2 server on Ubuntu Hardy is pretty easy.
sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
Note:
I choose apache2-mpm-prefork (single thread) over apache2-mpm-worker (multi-threaded requests). This is because mod_rails may work with apache2-mpm-worker, but is only currently tested to work with apache2-mpm-prefork.
ServerName
Edit your apache configuration file:
$ vim /etc/apache2/apache2.conf
At the end of the [...]