Depending on you system on Ubuntu 12 I believe the file you are looking for is /etc/apache2/conf.d/nagios.conf

The official guide from Nagios on Ubuntu is located here but you would need to adjust...