These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for wildcard virtual domain creation in apache config on the new forum.
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
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
Thanks for the update.
i did try it in the past but not recently.
i will try it again and see how it goes.
thanks it appear to be working. now, my sites are using ipv4 and 6 at the same time with a common configuration.