Wildcard in apache virtualhost sitename

vn flag

I want to use wildcards in Apache. What I actually want to do is:

  1. ServerName wiki-*, and the * must be accessible by further configurations.
  2. Provide the contents at /var/www/wiki/*, where * is the same as what * means on the first line.

How to do that?

Hmm... Actually, it's not limited to Apache configs, some external scripts could do the second step, but Apache config is the best whenever possible.


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.