Redirect Loop htaccess on MacOS Server

Unfortunately, using Mac OS X Server’s Webserver, rather than just a normal apache2 installed on the mac requires special config files since things are run a little differently. Thats why my httpd.conf is so different compared to a normal.

The 34543 is not actually the port number, its an identifier used by the MacOS X Server for each host and it uses it to do its own magic when bringing the server online. Even though it lists it as 34543 the host responds on the 443 port. My server has multiple domains all pointing to it and they all use the same ports, so this is just OS Xs way of differentiating between the two and serving the correct data. The servername with the port 443 in it is part of this process. (When creating the hosts in the server manager it creates the vhosts files with the servername as you see and the weird “port” identifier.)

To add more info:
I tested a very basic htaccess file on my server and it works just fine in the passbolt directory. It just seems like the .htaccess files that come with passbolt are having issues. Possibly one of the lines in the app/webroot htaccess is causing the issue. I’m not an expert on htaccess files and actions so can’t troubleshoot much.

The basic htaccess file I tested was in an empty directory with a test.php file. It correctly redirected my browser to test.php

RewriteEngine On
RewriteRule ^.*$ test.php