Skip to content
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

Routing subdomains to app routes #1330

Open
bruceborrett opened this issue Nov 15, 2022 · 1 comment
Open

Routing subdomains to app routes #1330

bruceborrett opened this issue Nov 15, 2022 · 1 comment

Comments

@bruceborrett
Copy link

bruceborrett commented Nov 15, 2022

I please need some assistance with custom Nginx configuration for the following scenario:

I want to have different subdomains pointing to different routes in my app, for example:

example.com -> /
app.example.com -> /app
shop.example.com -> /shop

I have searched and only found examples of routing different domains to different apps, not to the same app.

The documentation is also not very clear on how to use the custom server and custom location configs.

Thanks in advance.

@evolross
Copy link

We do something similar to this. You can just just parse the URL in your router and then route to a different route or URL in your app. As long as the URL is configured correctly, this is an application issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants