Hi,
I’m trying to install passbolt from scratch using Apache.
Important notes :
1) I’ve already set many other sub-domains (roundcube.my_domain.fr, nextcloud.my_domain.fr, …) using Apache.
2) I don’t know anything about the Apache syntax and what all the RewriteCond, RewriteRule or AllowOverride are used for.
3) My apache directory is located in /var/www/html
I’m facing the following issue :
Request exceeded the limit of 10 internal redirects due to probable configuration error.
Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: http://passbolt.my_domain.fr
Here is my current passbolt.conf file :
Alias /passbolt /var/www/html/passbolt
<Directory /var/www/html/passbolt>
Options FollowSymlinks
AllowOverride All
Require all granted
<FilesMatch "\.(php)$">
SSLOptions +StdEnvVars
</FilesMatch>
</Directory>
I’ve tried with and without the “/webroot” but without success.
I don’t want to add any “DocumentRoot” as I don’t want passbolt to be redirected to “www.my_domain.fr”.
This is what happens when I set any “DocumentRoot” in my passbolt.conf.
I’ve noticed that, in my 00_default_ssl_vhost.conf (which is the default SSL virtual host, used for all HTTPS requests that do not match a ServerName or ServerAlias in any block), I have :
<VirtualHost *:443>
ServerAdmin <my_email_address>
ServerName my_domain.fr
ServerAlias *.my_domain.fr# SSL configuration SSLEngine on SSLCertificateFile /etc/certificates/ordi4_server.crt SSLCertificateKeyFile /etc/certificates/ordi4_server.pem SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS SSLHonorCipherOrder on # Encoded slashes need to be allowed AllowEncodedSlashes NoDecode CustomLog logs/ssl_request_log \
“%V %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b”
Header always set Strict-Transport-Security “max-age=15768000; includeSubDomains; preload”
RewriteEngine on RewriteCond %{HTTP_HOST} ^([^\.]+)\.my_domain\.fr RewriteCond /var/www/html/%1 -l RewriteRule ^(.*) /%1/$1 [L]
It is possible that the different RewriteCond/RewriteRule from 00_default_ssl_vhost.conf interfere with the ones in the file passbolt/.htaccess.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(\.well-known/.*)$ $1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
Could you help me to solve this issue.
Regards.
Xuo.