Strange problem with /admin/ URI

More
2 months 3 weeks ago #157094 by zobbyzobba
zobbyzobba created the topic: Strange problem with /admin/ URI
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

Please Log in to join the conversation.

More
2 months 3 weeks ago #157230 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 months 2 weeks ago #157284 by zobbyzobba
zobbyzobba replied the 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 ?

Please Log in to join the conversation.

More
2 months 1 week ago #157458 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 months 3 days ago - 2 months 3 days ago #157682 by zobbyzobba
zobbyzobba replied the topic: Strange problem with /admin/ URI
I don't know...


My VirtualHost is quite simple:
<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: 2 months 3 days ago by zobbyzobba.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now