Not really sure if this is possible but was curious if it is possible to have, say, the root domain redir the root domain to an external site but have the ability to proxy say /portainer/ to an internal service?
ie:
domain.net, www.domain.net { redir ?? website.com proxy /portainer/ ip:9000 { stuff } }
or would I be better off running a subdomain?
You can get creative with rewrite to make this happen without having the redir affect specific areas.
rewrite
redir
rewrite { if {path} not_starts_with /portainer to /redir_to_external_site } redir /redir_to_external_site http://example.com
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.