Configure Apache to redirect to domain:port

Avatar
  • Answered
I've set up a CNAME to redirect to another domain but as we all know we cannot specify ports in the DNS editor.

I've read that its easy enough to configure the Apache web server with a reverse proxy to direct content from thatdomain.com:100 when someone requests 123.thisdomain.com

Does anyone have any experience in doing this? I would like to know how to do it on my VPS because I have many uses for getting this done.

Thanks for your time and help.

EDIT: This appears to be the solution, but I am a bit unsure on how to implement these settings: http://serverfault.com/questions/85078/how-to-forward-dns-alias-to-hostnameport
Avatar
Scott
Hello wasted7,

You can have sample.domainA.com redirect to domainB.com:100 with the simple redirect tool in the cpanel.

If you were working towards anything more complex or specific please reply with those details so we can be of further assistance.

Best Regards,
Scott M