Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

One copy of LimeSurvey hosted on multiple domains

  • paulatthehug
  • paulatthehug's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago - 10 years 9 months ago #105060 by paulatthehug
I've already installed LimeSurvey on survey.milton.org.uk but I would now like to install it on survey.cavernoma.org.uk too, which is hosted on the same server. So, to avoid another install, I tried symlinking the root directory on the first so that it was also the root directory of the second.

This looked like it was going to work. If you visit survey.cavernoma.org.uk it looks plausible. But go to survey.cavernoma.org.uk/admin/ and you see the problem. I get:
Code:
Internal Server Error
 
The server encountered an internal error or misconfiguration and was unable to complete your request.
 
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
 
More information about this error may be available in the server error log.

And the error log says
Code:
Request exceeded the limit of 10 internal redirects due to probable configuration error.

So my question is: is it possible to host one copy of LimeSurvey hosted on multiple domains? Or am I wasting me time? Thanks.
Last edit: 10 years 9 months ago by paulatthehug.
The topic has been locked.
  • paulatthehug
  • paulatthehug's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #105062 by paulatthehug
Replied by paulatthehug on topic One copy of LimeSurvey hosted on multiple domains
Here's the output of the apache error log with debugging on, in case this helps:
Code:
[Fri Feb 14 13:59:44 2014] [error] [client 86.14.225.60] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Feb 14 13:59:44 2014] [debug] core.c(3112): [client 86.14.225.60] r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /var/www/hosts/survey.cavernoma.org.uk/www/index.php
[Fri Feb 14 13:59:44 2014] [debug] core.c(3118): [client 86.14.225.60] redirected from r->uri = /admin/
[Fri Feb 14 13:59:44 2014] [debug] mod_deflate.c(615): [client 86.14.225.60] Zlib: Compressed 627 to 386 : URL /var/www/hosts/survey.cavernoma.org.uk/www/index.php
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 years 9 months ago #105086 by DenisChenu
Replied by DenisChenu on topic One copy of LimeSurvey hosted on multiple domains
Hi,

I think more of an vhost config error here. Because i have already some alias with different subdirectory: ls.exemple.org/ and www.example.com/ls for example.

Or you force something somewhere in config . Https maybe ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • paulatthehug
  • paulatthehug's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #105094 by paulatthehug
Replied by paulatthehug on topic One copy of LimeSurvey hosted on multiple domains
It's starting to look that way. If I use survey.cavernoma.org.uk/admin/index.php rather than survey.cavernoma.org.uk/admin it's fine ( even though the latter works on the original site to which I'm symlinking, see survey.milton.org.uk/admin ).

Odd. This smells a bit of mod_rewrite doing something odd but I may be clutching at straws.

Anyway, not to worry, I can work around this: just don't use short URLs.
The topic has been locked.
  • paulatthehug
  • paulatthehug's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #105095 by paulatthehug
Replied by paulatthehug on topic One copy of LimeSurvey hosted on multiple domains
Yes, it's mod_rewrite. It looks like changing
Code:
    RewriteRule . index.php

to
Code:
    RewriteRule . /index.php

fixes it.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose