RE: Apache httpd directory listing no longer working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>     Alias /mydirectory / "/my/actual/location"
>mismatch trailing slash a potential red flag her.

The actual rule has a trailing slash (typo during obfuscation of real location)
    Alias /mydirectory / "/my/actual/location/"

> what URL fails and what's the verbatin error_log entry?
* http://my.servername.com/mydirectory/
* http://my.servername.com/mydirectory/subdir/
(basicaly everything that's a directory at any sublevel fails while any file at any sublevel works)

> better as <Directory> here
I've tried as directory and it doesn't help. 
On a different Virtualhost in the same configuration, we have an Directory matching combined with an alias that works.
After setting it identical for this Virtualhost it still didn't work:

<VirtualHost *>
    ServerName my.otherservername.com
...
    Alias /Logs/ "/my/logdirectory/"
...
    <Directory "/softwp/HTMLpages/Logs/">
        Options Indexes FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>
...
</VirtualHost *>

The main reason it's not noted as a directory is because there's multiple URLs with different access control pointing to the same directory.
Putting it on Directory allows directory listing for all Locations which have different restrictions.

Additional information:
* httpd version: 2.2.15 (on Centos 6)
* directory pointed to is a link to a directory across a mount

Regards,
Stefaan Dutry

-----Oorspronkelijk bericht-----
Van: Eric Covener [mailto:covener@xxxxxxxxx] 
Verzonden: woensdag 14 februari 2018 13:33
Aan: users@xxxxxxxxxxxxxxxx
Onderwerp: Re:  Apache httpd directory listing no longer working

On Wed, Feb 14, 2018 at 3:05 AM,  <stefaan.dutry@xxxxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux