Skip to content

how to configure DNS records virtualmin?

Solved Linux
26 2 9.9k 1
  • @phenomlab NGINX i guess ☺

    wrote on last edited by
    #15

    @Hari Try this in your nginx.conf file

    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
    
  • @Hari Try this in your nginx.conf file

    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
    
    wrote on last edited by
    #16

    @phenomlab i think i missed this step, how can i make sure i am using NGINX

    32016667-856a-4dde-a4aa-832bb81e202a-image.png

    my current settings for ask8

    5b514fa7-f18c-4417-9e90-f0dc940acd28-image.png

    ask8 is not opening because i have opted for HSTS i want an origin server certificate 🙂

  • @phenomlab i think i missed this step, how can i make sure i am using NGINX

    32016667-856a-4dde-a4aa-832bb81e202a-image.png

    my current settings for ask8

    5b514fa7-f18c-4417-9e90-f0dc940acd28-image.png

    ask8 is not opening because i have opted for HSTS i want an origin server certificate 🙂

    wrote on last edited by
    #17

    @Hari How did you install Virtualmin on that droplet ? If you used the default commands, it is using Apache.

  • @Hari How did you install Virtualmin on that droplet ? If you used the default commands, it is using Apache.

    wrote on last edited by Hari
    #18

    @phenomlab i followed this video, now i went forward with apache and enabled SSL at virtual min and ask8 is loading ✅

    from our conversation i have learned how to create SSL and apply for our server (sub-domain) at Virtualmin.

    Virtualmin is so nice it has built-in SSH easy to access.

    now i am taking backup of live flarum for ask. virtualserver

    after uploading DB and files i will disturb if i face any issues.

    next, i should set up Redis …etc and need to change ask server to NGINX

    now deleting ask8 which is created to learn SSL

  • @phenomlab i followed this video, now i went forward with apache and enabled SSL at virtual min and ask8 is loading ✅

    from our conversation i have learned how to create SSL and apply for our server (sub-domain) at Virtualmin.

    Virtualmin is so nice it has built-in SSH easy to access.

    now i am taking backup of live flarum for ask. virtualserver

    after uploading DB and files i will disturb if i face any issues.

    next, i should set up Redis …etc and need to change ask server to NGINX

    now deleting ask8 which is created to learn SSL

    wrote on last edited by
    #19

    @Hari Ok, no issues. I tend to prefer NGINX over Apache2 myself.

    See below

    https://www.virtualmin.com/documentation/installation/automated/#LAMP_vs_LEMP

    Essentially, you need to suffix the install script with --bundle LEMP

  • @Hari Ok, no issues. I tend to prefer NGINX over Apache2 myself.

    See below

    https://www.virtualmin.com/documentation/installation/automated/#LAMP_vs_LEMP

    Essentially, you need to suffix the install script with --bundle LEMP

    wrote on last edited by
    #20

    @phenomlab yeah, i missed that

    i think migrating from apache to NGNIX is a bit complicated i will destroy this droplet and do the installation again.

    tried this, after running apt-get install nginx

    i thought this will get complicated

    https://www.digitalocean.com/community/tutorials/how-to-migrate-from-an-apache-web-server-to-nginx-on-an-ubuntu-vps

  • @phenomlab yeah, i missed that

    i think migrating from apache to NGNIX is a bit complicated i will destroy this droplet and do the installation again.

    tried this, after running apt-get install nginx

    i thought this will get complicated

    https://www.digitalocean.com/community/tutorials/how-to-migrate-from-an-apache-web-server-to-nginx-on-an-ubuntu-vps

    wrote on last edited by
    #21

    @Hari I wouldn’t do that personally. It’ll land up a complete mess, and you won’t be able to manage NGINX via Virtualmin if you take this route.

  • @Hari Ok, no issues. I tend to prefer NGINX over Apache2 myself.

    See below

    https://www.virtualmin.com/documentation/installation/automated/#LAMP_vs_LEMP

    Essentially, you need to suffix the install script with --bundle LEMP

    wrote on last edited by Hari
    #22

    @phenomlab

    wget http://software.virtualmin.com/gpl/scripts/install.sh --bundle LEMP
    

    this command is not working

    349c654c-b007-4b38-886b-4d21d4d44665-image.png

    shall i avoid bundle and just try without it?

    wget http://software.virtualmin.com/gpl/scripts/install.sh LEMP
    

    edit

    got it, as per this video i should add bundle line in the installation step

    /bin/sh install.sh -bundle|-b LEMP
    

    nope this one is also not working

  • @phenomlab

    wget http://software.virtualmin.com/gpl/scripts/install.sh --bundle LEMP
    

    this command is not working

    349c654c-b007-4b38-886b-4d21d4d44665-image.png

    shall i avoid bundle and just try without it?

    wget http://software.virtualmin.com/gpl/scripts/install.sh LEMP
    

    edit

    got it, as per this video i should add bundle line in the installation step

    /bin/sh install.sh -bundle|-b LEMP
    

    nope this one is also not working

    wrote on last edited by
    #23

    @Hari said in how to configure DNS records virtualmin?:

    /bin/sh install.sh -bundle|-b LEMP

    Should be /bin/sh install.sh --bundle LEMP

  • @Hari said in how to configure DNS records virtualmin?:

    /bin/sh install.sh -bundle|-b LEMP

    Should be /bin/sh install.sh --bundle LEMP

    wrote on last edited by
    #24

    @phenomlab

    sh ./install.sh --bundle LEMP
    

    this worked

  • @phenomlab

    sh ./install.sh --bundle LEMP
    

    this worked

    wrote on last edited by
    #25
  • wrote on last edited by
    #26

    i think we can mark this discussion as solved

    • learned how to install virtualmin with NGINX
    • We can easily point the DNS by mentioning server IP at CF a name record
    • learned how to install SSL
  • phenomlab phenomlab has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics