How I can force to use SSL in default website on Nethserver 7?
(default website in /var/www/html)
Thanks
How I can force to use SSL in default website on Nethserver 7?
(default website in /var/www/html)
Thanks
There are various possibilities to do this…
either via apache https://wiki.apache.org/httpd/RedirectSSL or htaccess redirect https://www.redirect301.de/weiterleitung-http-nach-https/
the apache configuration file is /etc/httpd/conf/httpd.conf
.
you will need of course a SSL certificate for the website (e.g., from letsencrypt)…
@RiccardoC have you found a solution for your site? If so, please mark the topic as solved…
If not, just ask again…!
Although there are lots of procedures, as @phonon112358 kindly pointed out, I’d recommend not to use the default website for a specific purpose. Other packages (both from NethServer and from upstream) make assumptions on its configuration and may break.
@RiccardoC, why not to use the Virtual hosts feature? It has the feature you need and full SSL certificates support, too…