We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40156
    • 5 Posts
    I'm looking for the correct syntax for the value for the "http_hosts_aliases" Context setting. I want to use multiple host aliases and I can not find the proper syntax for listing multiple top-level domains.

    Are the values comma separated? Space separated?
      • 3109 ☆ A M B ☆
      • 894 Posts
      If you want multiple hosts to route to the specific context, you can specify them as a comma separated list in a http_host_aliases context setting.

      More info here and here.

      Hope that helps, good luck.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 40156
        • 5 Posts
        Thanks. So, "http_hosts_aliases" uses a comma-separated list. Upon reading the ContextRouter info, it made me realize that I will need the "site_url" to have multiple entries that correlate with the aliases, right? Does "site_url" allow for a commas-separated value?
          • 3109 ☆ A M B ☆
          • 894 Posts
          Not that I know of site_url is for your main url if you want to use others they should go in the http_hosts_aliases.

          Good Luck.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 40156
            • 5 Posts
            I just tried it with just http_hosts_aliases values and the site responded as expected without any change to site_url. Thanks.


            Quote from: benmarte at Dec 09, 2013, 11:01 AM
            Not that I know of site_url is for your main url if you want to use others they should go in the http_hosts_aliases.

            Good Luck.