Project

General

Profile

Bug #30716

Browsing capsule /pub directory with https fails with forbidden don't have permission to access /pub/ error.

Added by Eric Helms 5 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1860519

Description of problem:

After upgrade from Red Hat Satellite 6.6 to 6.7, browsing capsule.example.com/pub directory fails with Forbidden errors.

You don't have permission to access /pub/ on this server

- /var/log/httpd/pulp-https_error_ssl.log

[autoindex:error] [pid 34896] [client 10.10.49.10:46870] AH01276: Cannot serve directory /var/www/html/pub/: No matching DirectoryIndex (index.html,index.html.var,index.cgi,index.pl,index.php,index.xhtml) found, and server-generated directory index forbidden by Options directive

Version-Release number of selected component (if applicable):

6.7
6.8-beta

How reproducible:

1) Browse https://capsule.example.com/pub --> It does not work
2) Browsing http://capsule.example.com/pub --> It works

Actual results:

Forbidden
You don't have permission to access /pub/ on this server

Additional Info:-

Issue started after upgrade from 6.6 to 6.7 only.

Workaround : # sed -i -e 's/ Options/Options +FollowSymLinks +Indexes/g' /etc/httpd/conf.d/05-pulp-https.conf

- Installer overwrites Options directives,

[ WARN 2020-07-25T00:10:22 main] /Stage[main]/Pulp::Apache/Apache::Vhost[pulp-https]/Concat[05-pulp-https.conf]/File[/etc/httpd/conf.d/05-pulp-https.conf]/content:
[ WARN 2020-07-25T00:10:22 main] --- /etc/httpd/conf.d/05-pulp-https.conf 2020-07-24 21:29:40.458852002 0530
[ WARN 2020-07-25T00:10:22 main] +
+ /tmp/puppet-file20200725-6707-190w1gd 2020-07-25 00:10:22.083480630 +0530
[ WARN 2020-07-25T00:10:22 main] @ -19,7 +19,7 @
[ WARN 2020-07-25T00:10:22 main] <IfModule mod_passenger.c>
[ WARN 2020-07-25T00:10:22 main] PassengerEnabled off
[ WARN 2020-07-25T00:10:22 main] </IfModule>
[ WARN 2020-07-25T00:10:22 main] - Options +FollowSymLinks +Indexes
[ WARN 2020-07-25T00:10:22 main] + Options
[ WARN 2020-07-25T00:10:22 main] Require all granted

Associated revisions

Revision 8cfa1780 (diff)
Added by Eric Helms 5 months ago

Fixes #30716: Ensure /pub on foreman proxy can be browsed by default

Fixes regression introduced by f6790c4

History

#1 Updated by Eric Helms 5 months ago

  • Project changed from Foreman to Installer

#2 Updated by The Foreman Bot 5 months ago

  • Assignee set to Eric Helms
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/puppet-foreman_proxy_content/pull/277 added

#3 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.3.0 added

#4 Updated by The Foreman Bot 5 months ago

  • Pull request https://github.com/theforeman/puppet-foreman_proxy_content/pull/278 added

#5 Updated by Eric Helms 5 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker 3 months ago

  • Category set to Foreman modules

#7 Updated by Ewoud Kohl van Wijngaarden about 2 months ago

  • Triaged changed from No to Yes
  • Target version set to 2.3.0

Also available in: Atom PDF