This week I needed to install LimeSurvey on a subfolder of a Debian 8 server, that is running NGINX. As always, the biggest problem is preparing the right rewrite.

After doing lots of tests, and reading LimeSurvey documentation, my final configuration to run it on a subfolder is as follows:

Attention to the “fastcgi_pass php5-fpm;” detail, that in my case, represents a file in /etc/nginx/conf.d/php5-fpm.conf:

This could be directly on location of the virtual host, but I prefer a external file to not have to repeat.

BONUS

If you don’t want index.php?r=foobar appearing on your URL, open /application/config/config.php of LimeSurvey and change two variables as below:

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.