Hi there,
as this is my first posting please be patient
I ran limesurvey 3.6.2 behind a reverse proxy with ssl offload (haproxy). It ran for around 3 months (not really sure, the version would be a good indicator).
I had to modify the SSL certificate on the reverse proxy (I was not able to connect to the json api) and now the system stopped working. I had not touched the limesurvey installation at all as this was only related to the certificate.
Configuration as follows:
Client using SSL -> Router -> reverse proxy (haproxy) terminating the ssl connection and sending 301 to indicate that there is no http any more -> limesurvey server (without ssl)
I do not know why this happens right now but I think that the client connects the reverse proxy, is redirected to https and receives a redirect to http from limesurvey server -> endless loop
In my config.php I have (obscured domain name):
Code:
return array(
'components' => array(
'db' => ***,
'log' => array(
'routes' => array(
'fileError' => array(
'class' => 'CFileLogRoute',
'levels' => 'warning, error',
'except' => 'exception.CHttpException.404',
),
),
),
// Enforce a certain URL base
'request' => array(
'hostInfo' => 'https://domain/'
),
// Uncomment the following line if you need table-based sessions
// 'session' => array (
// 'class' => 'application.core.web.DbHttpSession',
// 'connectionID' => 'db',
// 'sessionTableName' => '{{sessions}}',
// ),
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
// You can add your own rules here
),
'showScriptName' => true,
),
),
// For security issue : it's better to set runtimePath out of web access
// Directory must be readable and writable by the webuser
// 'runtimePath'=>'/var/limesurvey/runtime/'
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>0,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'enableLdap'=>true,
// Update default LimeSurvey config here
'sitename' => 'Our LimeSurvey',
'RPCInterface' => 'json',
//'publicurl' => 'https://domain/',
//'homeurl' => 'https://domain/admin',
)
);
I found some issues about this but nothing had helped.
Any help is really appreciated
Kind regards
Sebastian