wildcard in httpd conf file?

Posted by Joe on Server Fault See other posts from Server Fault or by Joe
Published on 2011-01-18T02:50:16Z Indexed on 2011/01/18 2:55 UTC
Read the original article Hit count: 266

Filed under:
|

Here is an example httpd config I'm currently using:

<VirtualHost 123.123.123.123:80>
        ServerName mysite.com
        ServerAlias www.mysite.com
        DocumentRoot /home/folder
</VirtualHost>

I'm wondering, is it possible to have a wildcard for the ServerName & ServerAlias variable?

Reason for asking is I have some software that is shared among multiple URL's all controlled in a CMS and it's kind of a pain to add new domains via ssh everytimee. And before someone points out a security hole, the software does check the current URL before doing any webpages :)

© Server Fault or respective owner

Related posts about apache

Related posts about httpd