wildcard virtual domain creation in apache config

4 posts / 0 new
Last post
#1 Thu, 09/03/2009 - 11:15

wildcard virtual domain creation in apache config

Hello. i am looking for a way to do a wildcard virtual domain creation in apache config

currently, virtualmin create this section to the apache config file.


i want to find a way for virtualmin to do this instead:

<VirtualHost *:80>

since i provide IPV4 and IPV6 virtual hosting, i currently need to copy the configuration and edit it by hand.

if it is currently inside the virtualmin, what is the field value as i would need to update my scripts to make the change.


Thu, 09/03/2009 - 14:15

I believe what Virtualmin does is try to match the existing NameVirtualHost line found in the Apache config.

So right now, it's likely that in your Apache config, there's a line that looks like:


If you really want Virtualmin to use the "*" char (I hope you know what you're doing :-), what you'll need to do is update that to be:

NameVirtualHost *:80

And then restart Apache.


Thu, 09/03/2009 - 14:53

Thanks for the update.

i did try it in the past but not recently.

i will try it again and see how it goes.

Fri, 09/04/2009 - 10:01

thanks it appear to be working. now, my sites are using ipv4 and 6 at the same time with a common configuration.

Topic locked