Re: Migrating nginx config to OpenBSD's httpd

2018-04-16 Thread Henrik Friedrichsen
Thanks again. This worked in case anyone is looking for it: http protocol "monit" { match request forward to match request header "Host" value "status.affekt.org" forward to } The order is important, if put in reversed the "status.affekt.org" forward will be overwritten. Now all I

Re: Migrating nginx config to OpenBSD's httpd

2018-04-16 Thread Pavel Korovin
On 04/16, Henrik Friedrichsen wrote: > - Is there a way to match all hosts that are not "status.affekt.org"? > That way I don't have to write a filter rule for every subdomain Didn't test, just the idea: 1. You put your default host (i.e. one that will respond to all http requests which do not

Re: Migrating nginx config to OpenBSD's httpd

2018-04-16 Thread Henrik Friedrichsen
Hey Pavel, thanks for your response. I have adapted my configuration and came up with this: ext4="51.15.10.194" ext6="2001:bc8:2d08::1" table { "127.0.0.1" } table { "127.0.0.1" } http protocol "monit" { match request header "Host" value "status.affekt.org" forward to match request

Re: Migrating nginx config to OpenBSD's httpd

2018-04-16 Thread Pavel Korovin
Henrik, Regarding cut off responses, I didn't have such problems, maybe it was fixed since 2016. Regarding multi-site setup, I have something like this: --- httpd.conf --- ### default site behind relayd server "waste.tristero.se" { alias "tristero.se" listen on 127.0.0.1 port 80

Re: Migrating nginx config to OpenBSD's httpd

2018-04-13 Thread Bogdan Kulbida
Hi Carlos, HAproxy project exists and serves much better as load balancer and reverse proxy server. It is more efficient than engine X. Any concerns using it? - Bogdan On Fri, Apr 13, 2018 at 04:47 Pavel Korovin wrote: > Hi Carlos, > > There's no analog of proxy_pass in

Re: Migrating nginx config to OpenBSD's httpd

2018-04-13 Thread Pavel Korovin
Hi Carlos, There's no analog of proxy_pass in httpd(8). relayd(8) is your friend. On 04/13, C. L. Martinez wrote: > I am trying to migrate nginx configuration to OpenBSD's httpd. All it is > working ok, except for some proxy reverse config that I use with nginx's > config, like for example: >

Migrating nginx config to OpenBSD's httpd

2018-04-13 Thread C. L. Martinez
Hi all, I am trying to migrate nginx configuration to OpenBSD's httpd. All it is working ok, except for some proxy reverse config that I use with nginx's config, like for example: server { listen 80; server_name internal.w01.domain.org; location / { proxy_pass