Reverse_proxy domain/data to datadomain/ issues

As reverse_proxy domain/data to datadomain/ issues · Issue #3659 · caddyserver/caddy · GitHub described.

To achieve same result like Nginx

	location ~ ^/data(.*)$ {
    		proxy_pass http://datadomain.com/$1;  
	}

Did you try this?

exampledomain.com {
	handle_path /data* {
		reverse_proxy datadomain.com
	}
}
3 Likes

Thanks man, I got it!

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.