You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by basti <ma...@unix-solution.de> on 2019/07/18 11:12:02 UTC

[users@httpd] Regex in ServerAlias

Hello,

i try somethink like

ServerAlias (www\.)(example)\.(com|info|foo.bar)

I have done, and reload config, no error is shown, but i do not see the
right page, only the default one.

Is there a way in Apache?

Best Regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Regex in ServerAlias

Posted by "Gillis J. de Nijs" <gi...@jink.net.INVALID>.
But you can do:  ServerAlias www.example.com www.example.info
www.example.foo.bar

Re: [users@httpd] Regex in ServerAlias

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jul 18, 2019 at 7:12 AM basti <ma...@unix-solution.de> wrote:
>
> Hello,
>
> i try somethink like
>
> ServerAlias (www\.)(example)\.(com|info|foo.bar)
>
> I have done, and reload config, no error is shown, but i do not see the
> right page, only the default one.
>
> Is there a way in Apache?

No, it's not processed as a regular expression.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org