Multiple domains per "app" via UI


  • | 277 points

    It would be awesome if there was an easy way via the UI to add more domains for 1 app. This way especially when dealing with multisite WordPress installations we could add as many domains as we like to map them to that installation.

    Currently the only way to do that is by manually editing the apache .confs + adding the domains into the hosts file.

    Some times this is overwhelming as there are many "resets" going on between dev environments and everything has to be set up by scratch.

    --

    If this wouldn't be possible via UI, would there be maybe a different more "automated" process of doing it?

    For example a script that would:
    1] Setup a new app as "multisite"
    2] Install WordPress
    3] Bind extra domains on this app such as: multi1.test, multi2.test so on so forth ( so practically the hosts file + apache conf would be automatically updated as well to make this work ? :) )

    Thanks!


  • administrators
    | 111171 points

    @mrxkon : Gotchas - I will consider it.


  • | 277 points

    Thanks @leokhoa ! Tell me if you need any further information or if I can help on testing anything etc, I'll be happy to do it :)


  • | 701 points

    This is indeed a very nice one same as the reversed proxy.


  • administrators
    | 111171 points

    @mrxkon , @fysioski : I am going to add an alias directive for "Quick app". Something like this:

    WordPress=https://wordpress.org/latest.zip alias=domain1,domain2,domain3
    

    domain1: is a fully qualified domain name (FQDN): such as multi1.test or mysite.com

    When the top level domain is equal to the hostname format (in Menu > Preferences), Laragon will add hosts entry for the domain.
    What do you think?


  • | 277 points

    Sounds like a plan @leokhoa if that's a way to go! Can't wait to test it / check it out :D


  • | 701 points

    perfect. Cant wait to test.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.