Help! http to https

webserver
v7

(Jon) #1

NethServer Version: 7.4.1708
Module: nethserver-httpd

Hi guys! I need your help.
I have a server in my home configured and in production without any problem.
I have a domain (myexample.com) pointed to my IP and a Let’sEncrypt certificate for the domain and some subdomains.
I have a configured vhost (www) with a 301 redirect (Redirect 301 / https://myexample.com) which redirects me perfectly.
My intention is that when writing directly myexample.com redirects me to https://myexample.com.
I’m a newbie in the Linux world and I can not make it work.
Thanks in advance to everyone.


(Markus Neuberger) #2

Hi Jon,

maybe it’s enough to “Require SSL encrypted connection” in your vhost config?


(Jon) #3

Hello @mrmarkuz. Thanks for your answer.
I had only configured the www vhost for www.myexample.com and not for myexample.com, www.myexample.com as in the image. I try it and I tell you.
Greetings to all!

Edit: Everything is OK. Thank you!