So I'm working with a fresh install of apache2 from the repos on Ubuntu 14.04.3. For unrelated reasons, the machine is already serving other things on port 80, so I want Apache to serve on a different port. However, publicly I want Apache to serve on port 80. Simple enough, set up a port forward from the router to port 8000 on the machine. I changed the 80
in ports.conf
and 000-default.conf
to 8000
and boom, it's serving just fine.
However, occasionally, I will type in the url http://my.hostname.com/asdf and it will redirect me to http://my.hostname.com:8000/asdf, which isn't anything because the router isn't forwarding any traffic on port 8000. Why is Apache doing this, and how can I make it stop?