During create new virtual server in Virtualmin, In file /etc/apache2/sites-enable/<server_name>.conf is bug.</server_name>
In directive <virtual host="" **ip_adress**:443=""> should be <virtual host="" **="" *="" **:443="">.
This causes no access to the page.</virtual></virtual>
I am improving:
In directive <virtual host="" ip_address:443=""> should be <virtual host="" *:443=""></virtual></virtual>
Virtualmin will use an IP addess rather than
*if any existing virtualhost blocks already use an IP.Well, I have checked that none of existing virtualmin blocks use IP address, and even though still adding a new virtual server causes standard apache virtual host directive to be *:80 while SSL virtualhost is added with IP_ADDRESS:443.
This is Ubuntu 16.04. Even I tried to change /etc/apache2/sites-available/default-ssl.conf <virtualhost _default_:443=""> to <virtualhost *:443=""> but still it did not helped.</virtualhost></virtualhost>
Thanks
Pawel
Did the config actually contain the word
_DEFAULT_in the VirtualHost block? Because that's something I haven't seen before..Hi Jamie, it was actually <virtualhost _default_:443="">.</virtualhost>
But I dig into Virtualmin setting and found the solution what I have desribed here: https://github.com/webmin/webmin/issues/157#issuecomment-386915170
Thanks
Pawel.
I'm going to add code to handle the use of
_default_properly in the next release of Virtualmin.OK.
Right now the setting that I described in link above works perfectly, I put it here for future reference:
Virtualmin | System Settings | Virtualmin Configuration | Defaults for new domains | Address format for Apache virtual hosts
One can choose:
detect automatically- it was a problemAlways use *- this solved my problem:-)