Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I'm running a VPS with Ubuntu installed. For example, Golang app 1 is listening on port and Golang app 2 is listening on port I want Golang app 1 to be served when someone requests from domain example1. First of all you can redirect connections on port 80 as a normal user. Simply create a host switch that implements http. Handler interface. I hope this gives you the idea.
Your question has been posted! Share it with others to increase its visibility and to get it answered quickly. Get the latest tutorials on SysAdmin and open source topics.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. My server serves 3 different domains using named virtual hosts in Apache2. I'm current using different Named Virtual Servers to redirect www to the non-www equivalent. Also, should I be listing www.
Stay informed about special deals, the latest products, events, and more from Microsoft Store. Available to United States residents. By clicking sign up, I agree that I would like information, tips, and offers about Microsoft Store and other Microsoft products and services. Privacy Statement. See System Requirements. Available on HoloLens. People also like. Additional information Published by GPhone. Published by GPhone.