I want to add some apps to a subdomain of my website, but I’m not sure how to proceed. Maybe it’s not even a streamlit question, but I am not really well versed in domain management sadly, other than setting up the actual subdomain.
You’re right that it’s not exactly a Streamlit question, but I can try and point you to some information that should help.
Subdomains are handled by a webserver, like Apache2 (my go-to, highly stable) and Nginx (another popular choice for your use case).
Here is the basic setup you’re after:
Set up a web server (Apache2, NGinx, etc) on a machine with a public IP address.
Use a DNS server to point a subdomain at your webserver’s IP address.
Configure your web server to route requests for each subdomain to the different ports that your Streamlit apps are running on.
For example, let’s say you had 2 streamlit apps called Calvin and Hobbes.
App “Calvin” is running on port 8501. You set up app “Hobbes” to run on port 8502.
So then you would set up a webserver to “listen” for requests on subdomains calvin.somedomain.com and hobbes.subdomain.com, and route requests to port 8501 and 8502, respectively.
Check out these two tutorials, one for Apache2 and one for NGinx, that deal with setting up a webserver to redirect requests to different ports.
Thanks for your patience with a response to this question!
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.