Hello, everyone; I wanted your help defining several applications on the sub-path on my subdomain.
For example, I used "Wallabg" application and want to access him from the "https://example.domain.com/wallabag" address.
When I try to access the application, the pages redirect me to the subdomain, not the subpath that I defined; this creates problems when loading the application.
my config is :
routers:
wallabag-router:
rule: "Host(`example.domain.com`) && PathPrefix(`/wallabag`)"
service: wallabag-service
middlewares:
- test
- test2
services:
wallabag-service:
loadBalancer:
serversTransport: insecureTransport
servers:
- url: "http://192.168.16.17"
middlewares:
test:
stripprefix:
prefixes: "/wallabag/"
test2:
redirectregex:
regex: "^(.*/wallabag)$"
replacement: ${1}/
More Help,
I have a similar problem in another system: some static files with the same issue (point to the subdomain instead of the subpath ). How can I add the subpath to the URL of these files?
The sample files:
favicon.svg?, site.webmanifest?v=2
I appreciate your help.