- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<form id="loginform" name="loginform" action="/index.php?r=admin/authentication/sa/login" method="post">
<form id="loginform" name="loginform" action="/limesurvey/index.php?r=admin/authentication/sa/login" method="post">
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); return array( 'components' => array( 'db' => array( // my secret DB settings here... ), 'urlManager' => array( 'urlFormat' => 'get', 'rules' => array( // You can add your own rules here ), 'showScriptName' => true, ), 'request' => array( 'baseUrl' => '/limesurvey/', ), ), 'config'=>array( 'debug'=>0, 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 'mysqlEngine' => 'MYISAM', 'publicurl' => 'https://my-domain.com/limesurvey', 'rooturl' => 'https://my-domain.com/limesurvey' ) ); /* End of file config.php */ /* Location: ./application/config/config.php */
events { worker_connections 4096; } http { upstream service-app1 { server app1-ui:80; } upstream service-app2 { server app2-ui:8080; } upstream service-app3 { server app3-ui:8080; } upstream service-blog { server blog-ui:80; } upstream service-racktables { server racktables-ui:80; } upstream service-limesurvey { server limesurvey-test:80; } server { listen 80; listen [::]:80; server_name my-domain.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name my-domain.com; error_log /var/log/nginx/my-domain.com-error.log; access_log /var/log/nginx/my-domain.com-access.log; ssl_certificate /etc/nginx/ssl/my-domain.com.crt; ssl_certificate_key /etc/nginx/ssl/my-domain.com.key; ssl_ciphers 'AES256+EECDH:AES256+EDH:!aNULL'; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; ssl_prefer_server_ciphers on; ssl_dhparam /etc/nginx/ssl/dhparam2048.pem; ssl_ecdh_curve secp384r1; ssl_session_tickets off; ssl_stapling on; ssl_stapling_verify on; resolver 8.8.8.8 8.8.4.4 valid=300s; resolver_timeout 10s; server_tokens off; location / { proxy_pass https://service-blog; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header Host $host; add_header X-XSS-Protection "1; mode=block"; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; } location /app3 { proxy_buffering off; proxy_pass https://service-app3; } location /app2 { proxy_pass https://service-app2; } location /app1/ { rewrite ^(app1)$ $1/ permanent; proxy_pass https://service-app1; } location /racktables/ { proxy_pass https://service-racktables/; proxy_redirect https://$host/ /racktables/; proxy_set_header Host $host; } location /limesurvey/ { proxy_pass https://service-limesurvey/; proxy_redirect https://$host/ /limesurvey/; proxy_set_header Host $host; } location /.well-known/acme-challenge { root /var/www; } location = /50x.html { root /var/www/errors; } location = /40x.html { root /var/www/errors; } } }
user www; worker_processes auto; # it will be determinate automatically by the number of core #pid /var/run/nginx/nginx.pid; # it permit you to use /etc/init.d/nginx reload|restart|stop|start events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 3000; server { listen 80; root /var/www/html/limesurvey; index index.html index.htm index.php; server_name localhost; error_log /var/log/nginx/error.log warn; access_log /var/log/nginx/access.log; client_max_body_size 32m; error_page 500 502 503 504/50x.html; location = /50x.html { root /var/lib/nginx/html; } location / { try_files $uri $uri/ /limesurvey/index.php?r=$uri&$args; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } } } }
Since it's more server configuration issue …jelo wrote: …
I recommend to submit a bugreport to raise some attention.
'request' => array( 'baseUrl' => '/limesurvey/', ),
proxy_redirect https://$host/ /limesurvey/;
That can be only decided once a bug report is submitted. We have seen reports, where the result was a change in how the configuration of LimeSurvey adapt to the environment.DenisChenu wrote: Since it's more server configuration issue …
I don't think it can be supported as bug report …