My apache home server listens for HTTP requests on an alternate port (port 8080), but I would like to let users type my domain name (example.com) without having to specify the port.
So far I've accomplished this through my DNS provider who redirects any requests to www.example.com or example.com to http://123.456.789.001:8080
This is a problem because though it works, users get an ugly number in their URL bar. What I would like to do is rewrite 123.456.789.001:8080 to example.com
I've tried reading http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html, but I'm no expert at URL writing and what I've come up with (and which obviously doesn't work) is:
RewriteEngine on
RewriteCond %{HTTP_HOST} =123.456.789.001
RewriteRule ^(.*) example.com/$1
which I placed in my httpd.conf file.