drupal log into website redirect me to root domain

January 3, 2014 1.3k views
my site is hosted as ipaddress/nameofsite When i try and log into this site at ipaddress/nameofsite I am redirect to ipadress I used this tutorial https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts Here is my virtual host folder http://pastebin.com/W8JHE1m3 I get a page not found I am not sure what i need to check
2 Answers
to add to this the page not found was caused when i added to the document root

i added mysite to the end of the path

What does Apache have in its error log?
tail -20 /var/log/apache2/error.log
Have another answer? Share your knowledge.