The Stax application console now supports configuring multiple custom domains from the application configuration tab. This is useful for applications that want to configure aliased domains for accessing their applications or for applications that want to change the behavior of the application based on the hostname used to access the application (known as virtual hosting). If you want to know the hostname used to access your application, use
ServletRequest.getServerName().
By default, all applications are available using their assigned staxapps.net domain. To add custom domain aliases, you'll need to configure a CNAME via your DNS provider and then add the names of the domains to the domain aliases list on your application's configuration page. After your application configuration is saved, the Stax HTTP routing layer begin to forward requests to your aliased domains to your application.
If you don't control your own domain, but would like to create an aliased Staxapps URL for your application, you can also assign your application to a free domain name in the staxapps.com (staxapps.net is reserved for auto-assigned domain names). This is especially useful if you'd like a "pretty" URL for a production version of your application (one that doesn't contain your Stax username).
For more information, check out the
Custom Application Domains wiki page.
You need to be a member of Stax Developer Community to add comments!
Join Stax Developer Community