Re: apache2.conf AuthType Basic

Eric Covener <[email protected]> Wed, 11 Mar 2026 11:19:49 -0400
Newsgroups gmane.comp.apache.user
Message-ID <CALK=YjONV1agoWV9Z3Wy9DXCBisCaTDpaW8i+X91CK8BY_T_Bg@mail.gmail.com>
On Wed, Mar 11, 2026 at 9:08=E2=80=AFAM Egon Frerich <[email protected]> wrot=
e:
>
> I want to allow only user with password to see /gitweb. I put this into a=
pache.conf:
>
> <Directory /opt/gitweb>
>         Options Indexes FollowSymLinks
>         AllowOverride None
>         #Require all granted
>    AuthType Basic
>    AuthName "flora"
>    AuthBasicProvider file
>    AuthUserFile "/etc/apache2/passwd/passwords"
>    Require user xxx
> </Directory>

Is there a similar Directory block where you actually configure
gitweb? Does it have access control directives?
How about access control in Location sections?