2 Replies Latest reply on Jan 14, 2014 6:19 AM by jbossolo

    Can I use aliases with wildcards in mod_cluster and JBoss?

    jbossolo

      Hi all!

      I hope to write in the right place, I'm missing the classic forum style...

      I'm working with Apache 2.2, mod_cluster 1.2 and JBoss EAP 6.1, someone told me to deploy an application that should serve a lot of different URLs, like:

       

      • blablaone.acme.com
      • blablatwo.acme.com
      • blablathree.acme.com
      • ...
      • blablatoomany.acme.com

       

      all of these names are DNS aliases of the IP that Apache is listening on.

      I'm lazy, so in JBoss I tried to define an alias with a wildcard:

       

      <virtual-server name="default-host">

           <alias name="blabla*.acme.com"/>

      </virtual-server>

       

      But I've got no luck, Apache is answering with an error 404.

      If I specify every alias like this, it works:

       

      <virtual-server name="default-host">

           <alias name="blablaone.acme.com"/>

           <alias name="blablatwo.acme.com"/>

           <alias name="blablathree.acme.com"/>

      </virtual-server>

       

      Could someone tell me if there is a way to avoid to manage that list of a lot of aliases and just use an *?

       

      Thanks for your attention.