Jump to content
  • 0

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


furioussnail

Question

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.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...