Subdomain to different port
Hello,
Is there anyway to redirect a subdomain to different port?
Here is my scenario
Site 1, www.site1.com
Site 2, www.site2.com => Redirected to www.site1.com
Now i want to redirect sub.site2.com to something like sub.site2.com:8090
Looking forward
Thanks
-
You will need to allow incoming/outgoing connection to port 8090 in the firewall of the server. :) 0 -
Hello :) Could you elaborate more on the service you are redirecting the subdomain to? Is this a service running on your cPanel server, or are you attempting to forward the request to a remote server? Thank you. 0 -
Hello, yes this is cPanel/WHM server & i am trying to redirect on the same server but different port. Actually Odoo is installed on the server & i want this subdomain to open odoo. I can open Odoo by visiting 1.2.3.4:8090 & also i can open it by sub.site2.com:8090 I simply want to that when i type/visit sub.site2.com it should opened sub.site2.com:8090 instead of sub.site2.com:80 0 -
Hello :) The following thread shows an example of how someone else implemented this: Jira mod_proxy subdomain These documents will help you with editing the Apache configuration: Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation Advanced Apache Configuration - EasyApache - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
4 comments