/admin attempts to redirect to an internal port
-
Description:
When using the LimeSurvey Cloudron app:Accessing /admin/index.php works correctly.
Accessing /admin alone redirects to http://example.app:8000/admin/ and hangs.
This happens because the LimeSurvey rooturl configuration is not automatically set to the Cloudron public URL. The redirect uses the internal service port instead of the public domain.
Steps to Reproduce:
Install LimeSurvey on Cloudron.
Navigate to https://<your-domain>/admin.
Observe the redirect to internal port :8000 and failure to load.
Navigate to https://<your-domain>/admin/index.php — page loads correctly.
Expected Behavior:
/admin should redirect to the correct public URL and load the admin interface.Additional Notes:
Setting rooturl manually in application/config/config.php fixes the issue, but the config is reset when the service is restarted.
Suggestion: Cloudron should automatically set and persist rooturl based on the app’s public domain.
-
Upon further investigation, looks like admin/ with a trailing slash is the hardcoded admin path and I can't quite see how to instruct limesurvey (or rather Yii) to do this. The :8000 redirect apparently comes from Yii framework for routes which are not defined by the app (which is correct as such, since
adminisn't used butadmin/which are different paths).Anyone here who knows the Yii framework and how to best configure that without causing potential side-effects?
-
N nebulon marked this topic as a question
-
This is now fixed with https://git.cloudron.io/packages/limesurvey-app/-/merge_requests/50
Turns out the
ServerNameis used by Yii to craft URLs and that was not in the VirtualHost section of the apache configs, thus not correctly expanded for that use-case.Package release is currently blocked by the AWS outage still affecting quay as our fallback registry, should be working tomorrow then.
-
N nebulon has marked this topic as solved
