mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
Fix #74 Can't login when SuiteCRM 8 is behind a LoadBalancer
This commit is contained in:
parent
41dd0421b1
commit
a2f5e858a7
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,12 @@ DirectoryIndex index.php
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# Fix #74 Redirect http to https (except when request comes from localhost).
|
||||
# This is the security requirement for login.
|
||||
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [R=301,L]
|
||||
|
||||
RewriteRule ^index.php.*$ - [L,NC]
|
||||
|
||||
# Determine the RewriteBase automatically and set it as environment variable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue