I found three places where an AJAX request is done to an absolute path. Doing e.g. $.get('/hosting/tasks/queue')
Adding Drupal.settings.basePath is an easy solution.

I included a patch for 7.x-2.x. but the same can be applied to 6.x-1.x as that code is the same.

I discovered this when I tried to proxy https://domain/aegir to the hostmaster installation and changed the $base_url in the hostmaster site.

Comments

helmo’s picture

Updated the patch:
* found another instance in hosting_task.js where basePath should be used.
* hosting_js_page callback should strip the base path

anarcat’s picture

Status: Needs review » Patch (to be ported)

Fix applied to 2.x. Will not merge to 1.x as it will probably never support subdirs.

helmo’s picture

I can understand that you don't officially want to add support for this for 1.x.

This however works fine for me in production.

steven jones’s picture

Status: Patch (to be ported) » Closed (won't fix)

If it's in 7.x-2.x and we don't want this in 6.x-1.x, then lets close this issue.

  • Commit ad925c5 on 7.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x by anarcat:
    #1198698 by helmo: Fixed Ajax requests ignore base_url() setting
    
    

  • Commit ad925c5 on 7.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x by anarcat:
    #1198698 by helmo: Fixed Ajax requests ignore base_url() setting
    
    

  • anarcat committed ad925c5 on 7.x-3.x-2345987
    #1198698 by helmo: Fixed Ajax requests ignore base_url() setting