I have some subdomains I want to redirect to specific ports on the same server. Say I have
dev.mydomain.com
I want dev.mydomain.com to redirect to mydomain.com:8080 how do I do this with Apache 2.2? I have Apache 2.2 running on default port 80. I can't figure out the write configuration to get this to happen.
I also want to keep the dev.mydomain.com in the URL of the client. I don't anyone to realize it is actually being hosted on a different port, this part is very important.
I have already set up dev.mydomain.com to resolve in DNS to mydomain.com, I want all the request to preserve the subdomain in the address bar of the browser.
This is for an intranet development server so I am not so concerned about exploits and security. This is server has a non-routable ip address as well.