How to serve Adonis.js behind a reverse proxy with a subpath #1441
Unanswered
matheusmota
asked this question in
Help
Replies: 1 comment 2 replies
-
For what exact reason, you want to access |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To being with, thanks for the great work with Adonis!
So, we are trying to keep multiple Adonis.js instances behind a reverse proxy (apache2) in the same domain. To achieve such separation, we have multiple locations (subpaths) pointing to different Adonis.js instances.
The mapping can be represented as follows:
To further clarify how we are mapping, here is an excerpt of the Apache config file regarding a location:
The mapping works fine.
The problem, however, is how to map the
/appX/
subpath of each Adonis.js instance. How should we configure Adonis.js to consider such subpath when using, for instance, the{{ assetsUrl('logo.png') }}
? Is there a base_url or something similar?We are using Adonis.js 4.1
Thanks heaps in advance. Any help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions