As a temporary workaround, you could try next:
1. Move into container
2. Enable `mod_rewrite`:
- For CentOS / RHEL: edit `/etc/httpd/conf/httpd.conf` and add one more "LoadModule" directive to it around the rest of them: `LoadModule rewrite_module modules/mod_rewrite.so`
- For Ubuntu / Debian: `# a2enmod rewrite`
3. Preserve original config file to roll back your changes easier later:
- CentOS / RHEL: `# cp /etc/httpd/conf.d/https_gluu.conf /etc/httpd/conf.d/https_gluu.conf.orig`
- Ubuntu / Debian: `# cp /etc/apache2/sites-enabled/https_gluu.conf /etc/apache2/sites-enabled/https_gluu.conf.orig`
4. Open Gluu's Apache config for editing:
- CentOS / RHEL: `/etc/httpd/conf.d/https_gluu.conf`
- Ubuntu / Debian: `/etc/apache2/sites-enabled/https_gluu.conf`
5. Find the `<Location /oxauth>` section in the file and add all the "Header" and "Rewrite*" clauses to make it look like this:
```
<Location /oxauth>
ProxyPass http://localhost:8081/oxauth retry=5 connectiontimeout=60 timeout=60
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS"
Header always set Access-Control-Max-Age "1800"
Header always set Access-Control-Allow-Headers "authorization,origin,x-requested-with,access-control-request-headers,content-type,access-control-request-method,accept"
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=204,L]
Order deny,allow
Allow from all
</Location>
```
6. Add the new element provided below somewhere before `<Location /oxauth>` section:
```
<LocationMatch "/.well-known/openid-configuration">
ProxyPass http://localhost:8081/oxauth/.well-known/openid-configuration retry=5 connectiontimeout=60 timeout=60
Header set Access-Control-Allow-Origin "*"
</LocationMatch>
```
7. Restart "httpd" service ("apache2" for Ubuntu / Debian)