Jump to content
  • 0

Getting "redirected you too many times" when setting up multicompany


Question

Posted

Hello.

Not sure where I make the mistake but I get "redirected you too many times" error when setting up a second company. Logs show nothing related to this. My OS is CentOS 7, PHP 7.0.22, Apache 2.4.6. I have the following config in Apache:

<VirtualHost *:80>
   ServerName cp.example.com

   Redirect permanent / https://cp.example.com/
</VirtualHost>

<VirtualHost *:443>
   ServerAdmin admin@example.com
   DocumentRoot "/path/to/html"
   ServerName cp.example.com
   ErrorLog "/path/to/error.log"
   CustomLog "/path/to/access.log" common

   <Directory "/">
       AllowOverride None
       Require all granted
   </Directory>

   SSLEngine on
   SSLCertificateFile /path/to/certificate/file
   SSLCertificateKeyFile /path/to/key/file
</VirtualHost>

 

Please help me to get this working.

Thank you.

6 answers to this question

Recommended Posts

  • 0
Posted

Yes, for the other domain you should have another virtualhost.

Also, is it possible this rule is causing the redirect loop? You might try removing it and seeing if that corrects the loop condition.

 Redirect permanent / https://cp.example.com/ 

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...