Stax Developer Community

Developer Community

Spike Washburn

New feature: Multi-domain applications

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.

Views: 1

Comment

You need to be a member of Stax Developer Community to add comments!

Join Stax Developer Community

Deji Comment by Deji on September 4, 2009 at 1:03pm
Excuse my ignorance but would this also support CNAME wild card domains *.mydomain.com? If so can you give me some pointers?

I want my users to be able to create their own subdomains e.g. userx.mydomain.com. Thanks!
Spike Washburn Comment by Spike Washburn on April 8, 2009 at 2:18pm
Hi Daniel, just add an alias for an available staxapps.com domain on your application's configuration tab.
Daniel Murygin Comment by Daniel Murygin on April 8, 2009 at 8:17am
I can't find information about assigning a name for staxapps.com on the wiki page. How can i get one?

Quick Links

Send Feedback

If you have any questions or feedback about Stax, please drop us a note.

© 2012   Created by Spike Washburn.

Badges  |  Report an Issue  |  Terms of Service