Caddy: Redo without on proxied response

Created on 25 Apr 2017  Â·  3Comments  Â·  Source: caddyserver/caddy

1. What version of Caddy are you running (caddy -version)?

9.5.0

2. What are you trying to do?

When I do a proxy, with the without feature, on the response the url are changed without the path, so the subsequent request are not correct

3. What is your entire Caddyfile?

http://www.lam.local {
  proxy /mattermost gitlab:80 {
    without /mattermost
    header_upstream Host mattermost.lam.local
    header_upstream X-Real-IP {remote}
    header_upstream X-Forwarded-For {remote}
    header_upstream X-Forwarded-Proto {scheme}
  }
  log stdout

}

4. How did you run Caddy (give the full command and describe the execution environment)?

from docker container

5. Please paste any relevant HTTP request(s) here.

curl -X GET http://www.lam.local/mattermost

subsequent request auto-generated

curl -X GET http://www.lam.local/static/info.js

6. What did you expect to see?

I would like to have the subsequent request like this:

curl -X GET http://www.lam.local/mattermost/static/info.js

Most helpful comment

Sorry for the late response, it was I'm misconfiguration on my side !!
Thanks for this project

Le dim. 30 avr. 2017 01:12, Matt Holt notifications@github.com a écrit :

Closed #1619 https://github.com/mholt/caddy/issues/1619.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mholt/caddy/issues/1619#event-1063280493, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADJrq3E75OdJzUALb5j8YDUTXcOD0hXQks5r08PcgaJpZM4NHdZ6
.

All 3 comments

I'm not sure I understand what you're asking. without is meant to remove that part from the requested URL so that you can have a virtual /path for the proxied site. It seems to me like you should just remove your without directive to get the expected result. If that doesn't fix it, can you give us more information about what you're trying to achieve?

I'm also confused, it looks like it's working as expected... feel free to clarify and, if this is a bug, we can re-open it.

Sorry for the late response, it was I'm misconfiguration on my side !!
Thanks for this project

Le dim. 30 avr. 2017 01:12, Matt Holt notifications@github.com a écrit :

Closed #1619 https://github.com/mholt/caddy/issues/1619.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mholt/caddy/issues/1619#event-1063280493, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADJrq3E75OdJzUALb5j8YDUTXcOD0hXQks5r08PcgaJpZM4NHdZ6
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yu-chenxi picture yu-chenxi  Â·  3Comments

billop picture billop  Â·  3Comments

la0wei picture la0wei  Â·  3Comments

ericmdantas picture ericmdantas  Â·  3Comments

lorddaedra picture lorddaedra  Â·  3Comments