I have been working with this initiative for several days without the desired outcome.
Hypothetically I have the domain
www.parking.com
in one server.
In another server (
192.168.1.100) I have the Limesurvey 2.05+ installed, and I want to access to my Limesurvey installation through the URL:
www.parking.com/surveys/
So, in the first server, in the virtualhost file of the apache, goes something like:
Code:
<VirtualHost *:80>
ServerName www.parking.com
ServerAlias www
..
..
ProxyPass /surveys/ https://192.168.1.100/
ProxyPassReverse /surveys/ https://192.168.1.100/
..
..
</VirtualHost>
And in the limesurvey server in the virtualhost conf file of the apache, goes something like:
Code:
<VirtualHost *:80>
..
..
DocumentRoot "/var/www/html/limesurvey205plus"
ErrorLog "/var/log/httpd/limesurvey205plus_error_log"
CustomLog "/var/log/httpd/limesurvey205plus_access_log" common
<Directory /var/www/html/limesurvey205plus>
DirectoryIndex index.html index.php
AddHandler php5-script .php
Options ExecCGI Indexes FollowSymLinks MultiViews +Includes
AddType text/html .php
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
The
/var/www/html/limesurvey205plus directory is where the limesurvey is installed.
Besides, is well know that we have our
config.php file, and we have to add a new item in the components array like this, and I also tried to add something in the config array:
Code:
return array(
'components' => array(
'db' => array( .. ),
// new addition
'request' => array('hostInfo' => 'https://www.parking.com/surveys/'),
..
..
),
'config'=>array(
'debug'=>0,
'debugsql'=>0
// new addition
,'publicurl' => 'https://www.parking.com/surveys/'
,'homeurl'=> 'https://www.parking.com/surveys/'
)
);
I went a little further and also commented some lines in the file
config-defaults.php because I experimented some glitches with the productions of the URLs.
Commented this:
Code:
/*
if(!isset($argv[0]))
{
$config['publicurl'] = Yii::app()->baseUrl . '/'; // The public website location (url) of the public survey script
}
else
{
$config['publicurl'] = '/';
}
*/
// And added this
$config['publicurl'] = 'https://www.parking.com/surveys/';
In the browser, we access without problems to the limesurvey URL like this:
www.parking.com/surveys/
, if I want to login then I go to:
www.parking.com/surveys/admin/
and this properly redirect me to:
www.parking.com/surveys/index.php/admin/authentication/sa/login
displaying the login form, but once I tried to do the proper login, it redirects me to the home of
www.parking.com
.
Any clues?