CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/21 00:50:14
Modified files:
usr.sbin/httpd : httpd.h server_fcgi.c server_file.c
server_http.c
Log message:
httpd: check access settings of the directory index location
When you ask for a directory, the index file can end up being served
by another location, and we never looked at its header rules, body
limits, block or authenticate. With authenticate on a fastcgi location
this even took the whole daemon down.
Move these checks into server_http_access() and call it from
server_file(), so every location that serves a request gets checked.
Hang on to the Authorization header until the request is done, so
each location can check it, and wipe it before handing the request
to fastcgi.
With input and help from armani@, OK armani@, kirill@
Reported by Artus KG