Re: httpd: expand HTTP Host

2017-03-15 Thread Reyk Floeter
OK reyk - go for it Florian Obser : > > This is OK florian@ or I can commit it if someone else OKs it. > >> On Wed, Mar 15, 2017 at 05:55:35PM +, Rivo Nurges wrote: >> Hi! >> >> New simplified version of the patch. >> >> Test results: >> HTTP 1.1 with Host: >>

Re: httpd: expand HTTP Host

2017-03-15 Thread Florian Obser
This is OK florian@ or I can commit it if someone else OKs it. On Wed, Mar 15, 2017 at 05:55:35PM +, Rivo Nurges wrote: > Hi! > > New simplified version of the patch. > > Test results: > HTTP 1.1 with Host: > HTTP/1.0 301 Moved Permanently > Location: https://testhttp.int/ > > HTTP 1.0

Re: httpd: expand HTTP Host

2017-03-15 Thread Rivo Nurges
Hi! New simplified version of the patch. Test results: HTTP 1.1 with Host: HTTP/1.0 301 Moved Permanently Location: https://testhttp.int/ HTTP 1.0 with Host: HTTP/1.0 301 Moved Permanently Location: https://testhttp.int/ HTTP 1.1 without Host: HTTP/1.0 400 Bad Request HTTP 1.0 without Host:

Re: httpd: expand HTTP Host

2017-03-13 Thread Rivo Nurges
Hi! Sure. Should I create new patch? Rivo On 13/03/2017, 20:38, "Florian Obser" wrote: On Mon, Mar 13, 2017 at 06:22:50PM +, Rivo Nurges wrote: > Hi! > > Host header is mandatory for HTTP 1.1 requests and httpd will return > 400 Bad request

Re: httpd: expand HTTP Host

2017-03-13 Thread Florian Obser
On Mon, Mar 13, 2017 at 06:22:50PM +, Rivo Nurges wrote: > Hi! > > Host header is mandatory for HTTP 1.1 requests and httpd will return > 400 Bad request without it. With HTTP 1.0 requests I get 301 to the > IP the httpd is running on. > right, so the if (desc->http_host ==

Re: httpd: expand HTTP Host

2017-03-13 Thread Rivo Nurges
Hi! Host header is mandatory for HTTP 1.1 requests and httpd will return 400 Bad request without it. With HTTP 1.0 requests I get 301 to the IP the httpd is running on. Connected to 10.XXX Escape character is '^]'. GET / HTTP/1.0\r\n\r\n HTTP/1.0 301 Moved Permanently Date: Mon, 13 Mar 2017

Re: httpd: expand HTTP Host

2017-03-13 Thread Florian Obser
On Sat, Mar 11, 2017 at 06:11:53PM +, Rivo Nurges wrote: > Hi! > > Following will add possibility to expand $HTTP_HOST to the HTTP > Host header in "block return". > > In my setup I have relayd on port 443 and httpd on 80. This patch > allows me to redirect http(httpd) to https(relayd)

httpd: expand HTTP Host

2017-03-11 Thread Rivo Nurges
Hi! Following will add possibility to expand $HTTP_HOST to the HTTP Host header in "block return". In my setup I have relayd on port 443 and httpd on 80. This patch allows me to redirect http(httpd) to https(relayd) without knowing the host. /etc/httpd.conf: server "redirect" { listen on *