How to redirect webmail from HTTP to HTTPS on a Linux server

Follow

Comments

7 comments

  • Avatar
    João Alves

    Hi!

     

    I've followed the solution 2.2 (Onyx) without luck.

    I've also restarted the services after the reconfigure.

    apache2.service

    nginx.service

    plesk.phpxx.fpm.service

     

    Can you help please?

  • Avatar
    João Alves

    Please ignore, I've inserted the code below, not above </virtualhost>.

     

    my bad, it's working

  • Avatar
    Lev Iurev

    @João Alves Glad to know:)

  • Avatar
    João Alves (Edited )

    Thank you for this how to !

     

    Regards

  • Avatar
    Ralph Jäger

    Adding this line works for me obtaining the Let's Encrypt certificate

    ProxyPass /.well-known/acme-challenge/ !

     

  • Avatar
    Jeffrey Zeunert

    Thank you for this article. I was able to make this redirect and experienced no downtime for my client's sites. I'm wondering, however, if creating the Plesk configuration template undid configuration changes I made probably in httpd.conf file? DirectoryIndex changed and loads html files first whereas it had been loading php files first.

     

  • Avatar
    Ivan Postnikov

    @Jeffrey Zeunert

    Hello!

    This is expected behavior.

    Applying configuration template deletes all changes done manually in Apache/Nginx configuration files.

Please sign in to leave a comment.

Have more questions? Submit a request