I might jump in on that point and revive this old topic, as I am experiencing the same issues as the OP 2 years ago.
After massive experimenting I came up with a configuration that allows serving of the admin page, however with broken css. On clicking on the 'Start installation' button, the URL changed/redirected from
Code:
https://servername.com/survey/index.php?r=installer/welcome
to
Code:
https://servername.com/index.php?r=installer/welcome
. Well, already the broken interface is a hint that something is not working correctly.
I was able to dirty-fix this look-issue by adding '/survey/' instead of '/' in the 'config-defaults.php' where 'publicurl' is defined (lines 621 and 623), however, the link would still give the wrong URL.
I am using the following setup:
The latest LimeSurvey release (limesurvey3.17.1+190408.zip).
An nginx reverse proxy that handles http to https redirects, and proxy passes the requests to different backend servers based on location (f.e. /survey/ to the limesurvey webserver). The backend server then proxy passes php requests to php-fpm.
The config of the frontend reverse proxy:
Code:
http{
[..some stuff..]
include /etc/nginx/proxy_params;
[..some stuff..]
server {
listen 80 default_server;
listen [::]:80 default_server;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
[..all the SSL stuff..]
[..other locations..]
location /survey/ {
#include /etc/nginx/proxy_params; # included in http context
proxy_pass https://192.168.3.13/;
}
}
}
The proxy_params file:
Code:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
The config of the limesurvey backend nginx (IP:192.168.3.13; 'snippets/fastcgi-php.conf' as of Debian9 nginx installation)
Code:
http{
[..some stuff..]
sever{
listen 80;
server_name _;
root /var/www/html/limesurvey;
index index.html index.htm index.php;
charset UTF-8;
try_files $uri $uri/ /index.php?r=$uri&$args;
location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
# Mitigate https://httpoxy.org/ vulnerabilities
fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}
}
Any ideas what I am overseeing? Any help appreciated!