Question

How to mask redirect a subdomain to IP:Port

I have a subdomain, lets say example.mysite.com. I want it to point to my.ip:3838. Is there a way to do this, so it still shows example.mysite.com in the address bar? Whenever I try it in the add records part of the droplet it says that I can’t redirect to an IP. I have Shiny Server and Rstudio installed on the IP and I would like the subdomains to be a clean place for me to navigate to them from.

I have wordpress installed on the mysite.com domain and would like to keep that there. I’m also using other subdomains with a basic index.html file and that is working fine.

Thanks!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@habbywall

I’d take a look at the guide below here at DigitalOcean:

https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

That should provide more insight as to how to go about setting up Apache to function as a proxy. More specifically, you want to look at Modifying The Default Configuration. You can skip the load balancing portion as it’s not relevant (unless you’re trying to load balance).

You can configure your webserver to proxy requests.