A
A
Andrey Strelkov2021-01-13 12:47:48
Apache HTTP Server
Andrey Strelkov, 2021-01-13 12:47:48

Is it possible to add a hostname to the Apache Location directive as an exception?

Good afternoon, please tell me. I
use Apache with configured pass-through authorization via GSSAPI, the problem is that
certain services need to access the root address of the site, but these services cannot physically perform authorization.
Namely, for example, there is a site mysite.ru , users go to it and successfully log in automatically, however, there is a certain service that periodically also knocks on this address and the 401st error is returned accordingly
.

<Location />
    AuthType GSSAPI
    AuthName "GSSAPI Single Sign On Login"
    GssapiCredStore keytab:/etc/httpd/key.keytab
    Require valid-user
</Location>


The question is, is there such an opportunity in Apache that we can add certain addresses or host names (from which the request is coming from) to this directive that will be ignored, i.e. authorization will not be required for them

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-01-13
@strelkov_av

<Location />
    AuthType GSSAPI
    AuthName "GSSAPI Single Sign On Login"
    GssapiCredStore keytab:/etc/httpd/key.keytab
    Require valid-user
    
    Require ip 192.168.10.20
</Location>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question