RE: [users@httpd] Apache httpd directory listing no longer working

2018-02-14 Thread stefaan.dutry
I've found and fixed the problem.

It was caused by adding support for php.
The following rule caused the problem and is now commented out:

DirectoryIndex index.php

Thx for helping me with the search for the problem.

Regards
Stefaan Dutry

Van: stefaan.du...@roularta.be [stefaan.du...@roularta.be]
Verzonden: woensdag 14 februari 2018 14:00
Aan: users@httpd.apache.org
Onderwerp: RE: [users@httpd] Apache httpd directory listing no longer working

>> 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  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:


ServerName my.otherservername.com
...
Alias /Logs/ "/my/logdirectory/"
...

Options Indexes FollowSymLinks
Order allow,deny
Allow from all

...


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:cove...@gmail.com]
Verzonden: woensdag 14 februari 2018 13:33
Aan: users@httpd.apache.org
Onderwerp: Re: [users@httpd] Apache httpd directory listing no longer working

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.
>
> 
> 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?

> ...
> 

better as  here

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

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

?B�CB�?�?[��X��ܚX�K??K[XZ[?�?\�\��][��X��ܚX�P?
 �\?X�?K�ܙ�B��܈?Y??]?[ۘ[??��[X[�?�??K[XZ[?�?\�\��Z?[??? �\?X�?K�ܙ�B

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


RE: [users@httpd] Apache httpd directory listing no longer working

2018-02-14 Thread stefaan.dutry
>> 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  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:


ServerName my.otherservername.com
...
Alias /Logs/ "/my/logdirectory/"
...

Options Indexes FollowSymLinks
Order allow,deny
Allow from all

...


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:cove...@gmail.com] 
Verzonden: woensdag 14 februari 2018 13:33
Aan: users@httpd.apache.org
Onderwerp: Re: [users@httpd] Apache httpd directory listing no longer working

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.
>
> 
> 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?

> ...
> 

better as  here

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

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



Re: [users@httpd] Apache httpd directory listing no longer working

2018-02-14 Thread Eric Covener
On Wed, Feb 14, 2018 at 3:05 AM,   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.
>
> 
> 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?

> ...
> 

better as  here

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

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