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:
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.
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:
And then restart Apache.
Thanks for the update.
i did try it in the past but not recently.
i will try it again and see how it goes.
it appear to be working.
now, my sites are using ipv4 and 6 at the same time with a common configuration.