ekkis
(Erick Calder)
November 16, 2016, 3:13am
1
if I declare in my Caddyfile something like
dev.prj.ex.com {
proxy / localhost:8001
}
when I visit that virtual host, I get redirected to localhost:8001
- but I don’t want that. I want it to remain dev.prj.ex.com
in the browser. how do I tell Caddy to do that?
bigethan
(Big Ethan)
November 16, 2016, 4:19am
2
seems related to this issue: https://github.com/mholt/caddy/issues/1254
If I’m reading that issue right, you either need to specify transparent
or always include the trailing slash.
tobya
(Toby Allen)
November 17, 2016, 2:07pm
3
updating to use ‘transparent’ should solve the issue
dev.prj.ex.com {
proxy / localhost:8001
transparent
}
ekkis
(Erick Calder)
November 18, 2016, 6:03am
4
so I tried it but get:
2016/11/17 22:01:02 Caddyfile:3 - Parse error: Unknown directive ‘transparent’
running v 0.9.3
here’s my Caddyfile
dev.prj.ex.com {
tls off
transparent
proxy / localhost:32790
}
in fact, in looking through Welcome — Caddy Documentation I see no such directive
matt
(Matt Holt)
November 18, 2016, 6:07am
5
Typo in @tobya ’s answer; try this:
dev.prj.ex.com {
tls off
proxy / localhost:32790 {
transparent
}
}
1 Like
ekkis
(Erick Calder)
November 18, 2016, 6:11am
6
ah. that did it. #awesome . and thank you Matt, for maintaining this. it’s a terrific piece of software
1 Like
matt
(Matt Holt)
November 18, 2016, 6:17am
7
Thank you ! And thanks to all the contributors who maintain it when I’m busy with other stuff
system
(system)
Closed
February 16, 2017, 6:17am
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.