You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Aiello, Pierfrancesco" <pi...@aperto.com> on 2021/05/12 09:55:14 UTC

[users@httpd] Is there a way to let apache check resources (example AuthUserFile ) when the service starts?

Hello everyone,

I just encountered a server where the AuthUserFile was not there, but apache didn’t complain. I was expecting that the webserver would check whether the resources would be there/reachable at least once during the start. For example “does the file exists” or “is the endpoint reachable” ? (I understand that checing more than the existence of the resources may take too much effort), thus the fact that the authuserfile didn’t even exists and the webserver was running surprised me.

My question(s) then would be:
- is there a way to let apache check the existence of the resources during the start? (once during the start would help)
- why is the design so, that it allows to define resources that aren’t there (at least during the start/reload)?

Thank you for the help

Best regards,
Pier

Re: [users@httpd] Is there a way to let apache check resources (example AuthUserFile ) when the service starts?

Posted by Nick Folino <ni...@folino.us>.
If the file isn't there, nobody can authenticate.  I would think that to be
by design.

Nick

On Wed, May 12, 2021 at 5:55 AM Aiello, Pierfrancesco <
pierfrancesco.aiello@aperto.com> wrote:

> Hello everyone,
>
>
>
> I just encountered a server where the AuthUserFile was not there, but
> apache didn’t complain. I was expecting that the webserver would check
> whether the resources would be there/reachable at least once during the
> start. For example “does the file exists” or “is the endpoint reachable” ?
> (I understand that checing more than the existence of the resources may
> take too much effort), thus the fact that the authuserfile didn’t even
> exists and the webserver was running surprised me.
>
> My question(s) then would be:
> - is there a way to let apache check the existence of the resources during
> the start? (once during the start would help)
>
> - why is the design so, that it allows to define resources that aren’t
> there (at least during the start/reload)?
>
>
>
> Thank you for the help
>
> Best regards,
>
> Pier
>

Re: [users@httpd] Is there a way to let apache check resources (example AuthUserFile ) when the service starts?

Posted by Nick Kew <ni...@apache.org>.
> On 12 May 2021, at 10:55, Aiello, Pierfrancesco <pi...@aperto.com> wrote:
> 
> Hello everyone,
>  
> I just encountered a server where the AuthUserFile was not there,

There's no such thing as *the* AuthUserFile.  Authentication is delegated
to the directory level, including where applicable to users via .htaccess.
Details can change at any time without a server restart.

-- 
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org