Configure Apache to redirect to domain:port


wasted7
Asked:
2012-09-26 10:58 am EST

Hits: 982
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

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Scott
Staff
20,949 Points
2012-09-26 11:28 am EST
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

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!