Hello,
I am configuring the https for open ondemand web where I have created ssl certificate and configured it in ood-portal.yml. But still I am facing the error where the ssl certificate is secured and valid but it directs to the oopen ondemand IP address. It seems something related redirect rule. I have no clue where it redirects.
Below are is my ood-portal.yml file:
servername: ood.csc.uni-frankfurt.de
port: 443
ssl:
- ‘SSLCertificateFile “/etc/letsencrypt/live/ood.csc.uni-frankfurt.de/fullchain.pem”’
- ‘SSLCertificateKeyFile “/etc/letsencrypt/live/ood.csc.uni-frankfurt.de/privkey.pem”’
Use OIDC authentication
auth:
- ‘AuthType openid-connect’
- ‘Require valid-user’
user_mapping:
oidc_remote_user_claim: uid
dex_uri: false
host_regex: ‘[\w.-]+.lan.csc.uni-frankfurt.de’
#host_regex: “[^/]+”
node_uri: ‘/node’
rnode_uri: ‘/rnode’
Below is the ood-portal-le-ssl.conf:
IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName ood.csc.uni-frankfurt.de
ErrorLog “/var/log/apache2/ood.csc.uni-frankfurt.de_error.log”
CustomLog “/var/log/apache2/ood.csc.uni-frankfurt.de_access.log” combined
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(141.2.213.51(:80)?)?$ [NC]
RewriteRule ^(.*) http://141.2.213.51:80$1 [R=301,NE,L]
Support maintenance page during outages of OnDemand
RewriteEngine On
RewriteCond /var/www/ood/public/maintenance/index.html -f
RewriteCond /etc/ood/maintenance.enable -f
RewriteCond %{REQUEST_URI} !/public/maintenance/.$
RewriteRule ^.$ /public/maintenance/index.html [R=302,L]
<FilesMatch “/var/www/ood/public/maintenance/.*”>
Header Set Cache-Control “max-age=0, no-store”
TraceEnable off
Header always set Content-Security-Policy “frame-ancestors http://141.2.213.51;”
<Directory “/var/www/ood/public/maintenance”>
RewriteCond /etc/ood/maintenance.enable !-f
ReWriteRule ^.*$ /
RewriteCond %{REQUEST_URI} !/public/maintenance/.*$
RewriteRule ^.*$ /public/maintenance/index.html [R=503,L]
ErrorDocument 503 /public/maintenance/index.html
ServerAlias 141.2.213.51
SSLCertificateFile /etc/letsencrypt/live/ood.csc.uni-frankfurt.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ood.csc.uni-frankfurt.de/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
Below is my error when I try ro access the web page with ssl (ood.csc.uni-frankfurt.de):
Not Found
Invalid client_id (“141.2.213.51”).
Is there anything I have to configure apart from ood-portal.yml file? Your help is indeed;