Welcome to the LimeSurvey Community Forum

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

Strange problem with /admin/ URI

  • zobbyzobba
  • zobbyzobba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #157094 by zobbyzobba
Strange problem with /admin/ URI was created by zobbyzobba
Hi,

I'm sorry for the topic title, I didn't find a good idea.

I've a problem with my fresh install of Limesurvey.


Everything seems to work great except for a routing issue.


When I'm trying to access to http://mydomain/limesurvey/admin (without ending trailing slash), the loading is very long and terminate with an error (inaccessible page) and in the URL the domain is replaced by the server local IP address.

But if I use http://mydomain/limesurvey/admin/ (with the slash) , everything is working great.


Any idea ?

Regards
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #157230 by DenisChenu
Replied by DenisChenu on topic Strange problem with /admin/ URI
Are you redirected when you use /limesurvey/admin/ ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • zobbyzobba
  • zobbyzobba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #157284 by zobbyzobba
Replied by zobbyzobba on topic Strange problem with /admin/ URI
Hi!

Yes I'm redirected to /limesurvey/index.php/admin/blahblahblah
Everything is working properly with the slash at the end.

Is it bad ?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #157458 by DenisChenu
Replied by DenisChenu on topic Strange problem with /admin/ URI
No, in this directory we have only 2 files and this 2 files do redirect part.

Seems there are an issue with you virtual host somewhere because in a lot of system it work without any issue demo.sondages.pro/admin

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • zobbyzobba
  • zobbyzobba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago - 6 years 7 months ago #157682 by zobbyzobba
Replied by zobbyzobba on topic Strange problem with /admin/ URI
I don't know...


My VirtualHost is quite simple:
Code:
<VirtualHost *:80>
  # The ServerName directive sets the request scheme, hostname and port that
  # the server uses to identify itself. This is used when creating
  # redirection URLs. In the context of virtual hosts, the ServerName
  # specifies what hostname must appear in the request's Host: header to
  # match this virtual host. For the default virtual host (this file) this
  # value is not decisive as it is used as a last resort host regardless.
  # However, you must set it for any further virtual host explicitly.
  #ServerName www.example.com

  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
 
  # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  # error, crit, alert, emerg.
  # It is also possible to configure the loglevel for particular
  # modules, e.g.
  #LogLevel info ssl:warn

  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
 
  # For most configuration files from conf-available/, which are
  # enabled or disabled at a global level, it is possible to
  # include a line for only one particular virtual host. For example the
  # following line enables the CGI configuration for this host only
  # after it has been globally disabled with "a2disconf".
  #Include conf-available/serve-cgi-bin.conf
        Alias /limesurvey /var/www/html
</VirtualHost>

LS code is directly in /var/www/html.
I have the problem with or without using the Alias.

I also tried to directly use the Iocal IP adress of the webserver and not passing trought reverse proxies and I have the problem localy, so I don't think it's a reverse proxy issue.


The only thing that can differ from standard configuration is that webserver is running inside a Docker container. And the IP address that I got in URL after the long loading and timeout is the container one:




Moreover, I don't think I'm passing trought the two files in /admin folder because if I remove them, I have the exact same problem.

Can you point me in which part of the code I can pass when using /admin URI ? In this way I can try to debug where it get the local IP instead of the domain name used.

Best Regards
Last edit: 6 years 7 months ago by zobbyzobba.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose