Menu

#5119 Bug during create new virtual server in Virtualmin

1.880
open
nobody
4
2018-05-13
2018-04-29
No

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>

Discussion

  • Maciej Rybacki

    Maciej Rybacki - 2018-04-29

    I am improving:
    In directive <virtual host="" ip_address:443=""> should be <virtual host="" *:443=""></virtual></virtual>

     
  • Jamie Cameron

    Jamie Cameron - 2018-04-29

    Virtualmin will use an IP addess rather than * if any existing virtualhost blocks already use an IP.

     
  • pawel

    pawel - 2018-05-06

    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

     
  • Jamie Cameron

    Jamie Cameron - 2018-05-07

    Did the config actually contain the word _DEFAULT_ in the VirtualHost block? Because that's something I haven't seen before..

     
  • pawel

    pawel - 2018-05-07

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2018-05-07

    I'm going to add code to handle the use of _default_ properly in the next release of Virtualmin.

     
  • pawel

    pawel - 2018-05-13

    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 problem
    • Always use * - this solved my problem:-)
     

Log in to post a comment.

Auth0 Logo