Is it possible to restrict a virtual host to a certain HTTP Method?
My use case is that I have legacy server with client that do not support TLS. They need to submit data through HTTP POST to a certain URL which also reacts to GET requests.
I would need something like this
mydomain.com:8080/modelName POST {
proxy / backend:3000
}
Is this possible with the current version of caddy?
You are right, usually this should be handled by the backend. In my case, I have two virtual hosts. One with automatic tls and one (for the legacy devices) without tls.