can someone tell me the path of the Apache2 config file on Ubuntu. Thanks!
You should read the Ubuntu server guide. It will probably answer most of your beginner questions on getting your web server setup (including the question you asked, which the guide states is in /etc/apache2/).