- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Which is no indication that tweaking more and more settings inside the Limesurvey folder will be the answer to your issues. You will continue to get issues with that installation. The webserver seems to have some rewriting of the URL activated. As long as nothing is known about the web server environment it is just guessing. You are currently working against all odds of having a fully working LimeSurvey installation at the end.marvelousvts wrote: I used baseUrl and HostInfo setting in config.php and initially it worked!
But when I click any button e.g. login button or for example to change language I redirect again back to folder.
https://servername.com/survey/index.php?r=installer/welcome
https://servername.com/index.php?r=installer/welcome
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/; } } }
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;
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; } } }
Did you check with
try_files $uri $uri/ /survey/index.php?r=$uri&$args;
And : why did you try to fix url before installing ?
https://servername.com/survey/<file|folder/|folder>
https://servername.com/<file|folder/|folder>
Yii::createApplication('LSYii_Application', $config)->run();
https://servername.com/survey/admin
https://servername.com/index.php?r=installer/welcome
No,lcnittl wrote:
And : why did you try to fix url before installing ?
Do you mean altering of 'config-defaults.php'? After finding the right proxy settings that do not lead to a redirect from