On Wed, Feb 14, 2018 at 3:05 AM,  <stefaan.du...@roularta.be> wrote:
> Directory listing inside one of our VirtualHost configurations has stopped 
> working recently.
> It now returns a 403 Forbidden when trying to access a directory.
>
> The url is protected with basic authentication from a .htpasswd file.
> Accessing a specific file under de location presents no problem. => not a 
> problem with the .htpasswd file
> The directory listing used to work with this configuration.
>
> Is there some other configuration that needs to be checked?
>
> The configuration is as follows.
>
> <VirtualHost *>
>     Servername my.servername.com
> ...
>     Alias /mydirectory / "/my/actual/location"

mismatch trailing slash a potential red flag her.

what URL fails and what's the verbatin error_log entry?

> ...
>     <Location /mydirectory>

better as <Directory> here

>         Options +Indexes
>         AuthName "Restricted access"
>         AuthUserFile /etc/httpd/conf/my.htpasswd
>         AuthType Basic
>         require valid-user
>     </Location>
> </VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to