Page 1 of 1

How to Force https?

PostPosted: Fri Jul 22, 2022 5:06 pm
by bronson
I was able to install my SSL certificate but it's still possible to go to http://FQDN/vicidial/welcome.php. How can I force a redirect to httpS://FQDN/vicidial/welcome.php?

System:
Vicibox10 Express Install
Version: 2.14b0.5
SVN Version: 3529
DB Schema Version: 1645

Thank you!

Re: How to Force https?

PostPosted: Fri Jul 22, 2022 7:36 pm
by dhijrwn
edit this file
nano /etc/apache2/vhosts.d/1111-default.conf

and then remove all the single comment sign #
### To force everything to SSL uncomment the following
# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

then restart your apache service
systemctl restart apache

Re: How to Force https?

PostPosted: Sat Jul 23, 2022 10:30 am
by bronson
this worked! thank you!