Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LimeSurvey
  3. /admin attempts to redirect to an internal port

/admin attempts to redirect to an internal port

Scheduled Pinned Locked Moved Solved LimeSurvey
6 Posts 2 Posters 56 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    caspear
    wrote last edited by
    #1

    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.

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote last edited by
      #2

      Well spotted and easy to reproduce. Working on a fix.

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote last edited by
        #3

        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 admin isn't used but admin/ which are different paths).

        Anyone here who knows the Yii framework and how to best configure that without causing potential side-effects?

        1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote last edited by
          #4

          This is now fixed with https://git.cloudron.io/packages/limesurvey-app/-/merge_requests/50

          Turns out the ServerName is 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.

          1 Reply Last reply
          4
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote last edited by
            #5

            The new package is out, this should be fixed.

            1 Reply Last reply
            1
            • nebulonN nebulon has marked this topic as solved
            • C Offline
              C Offline
              caspear
              wrote last edited by
              #6

              Confirmed fixed.

              You are wonderful. 🎉

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search