ISPConfig as Matrix Password Provider

Discussion in 'Installation/Configuration' started by IvoR., Jan 2, 2024.

Tags:
  1. IvoR.

    IvoR. New Member

    Hi
    I started to implement ISPConfig as a Matrix password provider, described here.
    So, because it's not "as is" possible to manage this, I have to write a little PHP Script where act as a bridge between ISPConfig panel server (which is a dedicated VM in our environment) and the Matrix host.

    I decided to use the app-part on port 8081 which goes to /var/www/apps/_matrix-internal/identity/v1/check_credentials.php where also a .htaccess-file is placed, to map the incoming "check_credentials" request to "check_credentials.php":
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    
    ...but this ends up with a "POST /_matrix-internal/identity/v1/check_credentials HTTP/1.1" 404, I think because this definition in /etc/apache2/sites-available/apps.vhost (or maybe another part in the config):
    Code:
    <FilesMatch "\.ph(p3?|tml)$">
      SetHandler None
    </FilesMatch>
    
    I don't want to touch the app.vhost, but how can I let check_credentials as a php script with this restrictions?

    Some hints would be nice.
    Thanks a lot Ivo
     
    Last edited: Jan 2, 2024
  2. IvoR.

    IvoR. New Member

    till likes this.

Share This Page