You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to serve my site from https://example.com and redirect other requests to this location. I made the following httpd.conf:
server "default" {
listen on 1.2.3.4 port 80
block return 301 "https://vbezhenar.com$REQUEST_URI"
}
server "vbezhenar.com" {
listen on 1.2.3.4 tls port 443
tls certificate "/etc/ssl/example.com.crt"
tls key "/etc/ssl/private/example.com.key"
}
I want to serve my site from https://example.com and redirect other requests to this location. I made the following httpd.conf:
now I'm issuing request to the url http://example.com/path?a=b&c=d :
and receiving redirect to https://example.com/path%3Fa=b%26c=d
This is wrong redirect: it URI-encodes "?" and "&" corrupting initial request.
There should be some way to preserve request URI.
The text was updated successfully, but these errors were encountered: