How to setup Subdomains from main app
-
I have my web application(built with quasar SSR) ready for deployment, but i want some parts of this app to run under separate subdomain, for instance, the main app address will be located at myapp.com or www.myapp.com, and a part of the app will be located at admin.myapp.com or customer.myapp.com
please how can I get this setup with quasar ssr app?? -
My suggestion, and this isn’t from any experience, but I think the apps should be all different apps. So, you’d need a “web” app, an “admin” app and a “customer” app and all be served by separate web server instances. Or, you will have to go with
myapp.com/
,myapp.com/admin
andmyapp.com/customer
to have it on a single web server instance.Scott
-
@s-molinari I personally think the former option(having different webservers for subdomains) will be to heavy on the server…I read about express-subdomain but i don’t know if I can achieve my aim with it
-
Express isn’t that big of an application and creating three different instances wouldn’t be too resource intensive. What get’s resource intensive is the number of users you actually have.
Scott
-
@s-molinari I’m not getting something clearly! are you saying I have to create different quasar(ssr) apps or I can have three express instances in one quasar(ssr) app? please clarify
-
Three apps, served by three server instances, if you want them to all be on different domains.
Scott
-
@s-molinari okay thanks so much