New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Subdomain - Routes Configuration #48
Comments
An example is if you wanted users to have their own subdomains like GitHub Pages: {username}.github.io |
Docs: Configuring subdomain Example: It's good to add this info in the docs :)
When you go for non-dev env, production, etc. Then you override these values in environment profile, refer to docs. |
Must use nginx? |
Dynamic binding domains,Users resolve their domain names。 |
No, I'm using it for my purpose. Since on 443 port I'm running multiple services along with aah application. That is why. Please Note: proxy server or web server is not required in your scenario. Important things is router have to know Let's go by example:
You access your aah application during development like http://localhost:8080 and http://admin.localhost
That's it. Your application is ready to access on http://sample.com and http://admin.sample.com |
I understand what you mean。 Similar to pan analysis。 localhost { admin_localhost { |
Sorry, my English is not very good |
Currently aah framework support static binding of sub-domains. You mean adding feature of
Yes, you register However, there is a workaround you can do achieve your desire result. Workaround is-
Also can you please create an feature for dynamic binding? |
Yes, you can do this. Using above workaround which I mentioned
|
Thank you, resolved |
You can also use Query Parameter like- ctx.Req.Params.Query.Set("subdomainName", subdomainName) in the controller, you can access. c.Req.QueryValue("subdomainName") Thank you, Please create a feature request? I will add support for wildcard subdomain support out-of-the-box. |
localhost {
host = "localhost,127.0.0.1,a.com" ?
}
admin_localhost {
host = "admin.localhost"
}
How can I support multiple domain names?
Thank you!
The text was updated successfully, but these errors were encountered: