wildcard virtual domain creation in apache config

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

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.

<VirtualHost 67.212.64.5:80>
...
</VirtualHost>

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

<VirtualHost *:80>
...
</VirtualHost>

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.

Thanks

Thu, 09/03/2009 - 14:15
andreychek

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:

NameVirtualHost 67.212.64.5:80

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.

-Eric

Thu, 09/03/2009 - 14:53
PatrickLegault

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
PatrickLegault

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

Topic locked