Kirby 3.10 cannot access panel, environment not allowed

Hi,

I am having issues with a Kirby installation, overall the website used to work fine, but since I think the managed host changed their environment (AWS), I am unable to connect with the admin panel.

So strangely enough, the regular site works, but as soon as I go to domain.nl/panel I get the error from below.

The error:

My config.php

<?php

return [
    'debug'  => true,
    'url' => [
        'https://domain.nl',
        'https://www.domain.nl'
    ],
    'panel' => true,
    'markdown' => [
        'extra' => true
    ]
];

My .htaccess

# Kirby .htaccess
# revision 2023-07-22

# rewrite rules
<IfModule mod_rewrite.c>

# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on


# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder;
# otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite,
# set the RewriteBase to:
#
# RewriteBase /mysite

# In some environments it's necessary to
# set the RewriteBase to:
#
# RewriteBase /

# block files and folders beginning with a dot, such as .git
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.php [L]

# block all files in the content folder from being accessed directly
RewriteRule ^content/(.*) index.php [L]

# block all files in the site folder from being accessed directly
RewriteRule ^site/(.*) index.php [L]

# block direct access to Kirby and the Panel sources
RewriteRule ^kirby/(.*) index.php [L]

# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

</IfModule>

# pass the Authorization header to PHP
SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1

# compress text file responses
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

# set security headers in all responses
<IfModule mod_headers.c>

# serve files as plain text if the actual content type is not known
# (hardens against attacks from malicious file uploads)
Header set Content-Type "text/plain" "expr=-z %{CONTENT_TYPE}"
Header set X-Content-Type-Options "nosniff"

</IfModule>

Is there more information in the browser console?

Maybe an issue with http vs https?

Unfortunately the console only mentions the internal server error from retrieving domain.nl/panel.

All traffic is (enforced) redirect from http to https

@texnixe any idea on what might go wrong?

You need to debug why it runs into the exception, i.e. why the code before does not return… why $uri->toString() === $this->baseurl is false.

do you have any idea what has changed on the server?

No, I think the host only migrated from their own servers to AWS in the backend.

I lack the knowledge though to debug this…

What happens if you remove/comment the url config setting?