On 2019-04-03, =?utf-8?B?RnVuZw==?= <[email protected]> wrote:
> apache support somthing like
><Directory /web>
> Order Allow,Deny
> Allow from all
> Deny from 1.2.3.4
></Directory>
>
> How to achieve in OpenBSD's httpd?
> We are using OpenBSD 6.4.
>
>

There is no built-in simple way.

It can be done by having httpd listen on two different ports,
one allowing access to this directory, the other denying access,
and using a PF rdr-to rule to send traffic to the "allow access"
port if it has the correct source IP address. But this is a bit
of a mess.


Reply via email to