title: VirtualBox WordPress redirects to port 80
body: <p>I'm running on OSX 10.9.2. I just set up LAMP on Lubuntu in VirtualBox so that I could run a development server through VirtualBox. I changed my <code>/etc/apache2/ports.conf</code> to listen on 8080 instead of 80, and I set up my VirtualBox port forwarding with NAT with the following configuration:</p>
  
  <pre>
  +--------+----------+---------+-----------+----------+------------+
  | Name   | Protocol | Host IP | Host Port | Guest IP | Guest Port |
  +--------+----------+---------+-----------+----------+------------+
  | Apache | TCP      |         | 8080      |          | 8080       |
  +--------+----------+---------+-----------+----------+------------+
  </pre>
  
  <p>I can access websites that I have created in <code>/var/www/</code> such as <code>/var/www/testwebsite/</code> by accessing <code>localhost:8080/testwebsite</code> on my host machine (the Mac). I'm trying to install a WordPress site on my guest machine. I have followed <a href="https://www.digitalocean.com/community/articles/how-to-install-wordpress-on-ubuntu-12-04" rel="nofollow">Digital Ocean's How To Install WordPress on Ubuntu 12.04</a> and so far it works when I access <code>http://localhost:8080/wordpresssite</code> inside the guest machine (Lubuntu), but when I try to access <code>http://localhost:8080/wordpresssite</code> on my host machine, it redirects to  <code>http://localhost/wordpresssite</code>, when then can't be found. How do I fix this issue? Thanks in advance!</p>