proxy set root path

(Read this, then delete it before you post.) To get the best help possible, please:

  • explain what you are trying to do,
  • show what you have already tried,
  • include error messages and log output,
  • and link to any relevant resources.

Remember, this community only works when those who get help also give help. Thanks for participating!

I have a docker container:

  1. name: webtest
  2. ip: 172.20.0.4
  3. port:8000
    I set caddyfile:
    mydomain.com{
    proxy /webtest 172.20.0.4:8000 {
    without /webtest
    }
    }
    Now, view mydomain.com/webtest,it’s work. 172.20.0.4:8000 sources have a label href=’/tag’. if i click on mydomain.com/webtest,it will jump to mydomain.com/tag. i want click this label,it’s auto jump to mydomain.com/webtest/tag.How should I set it?

You need to load /webtest/ instead of /webtest when using relative hrefs.

This docker container is not mine. Can I set it through the configuration file(caddyfile)?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.