How to Force https?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to Force https?

Postby bronson » Fri Jul 22, 2022 5:06 pm

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!
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am

Re: How to Force https?

Postby dhijrwn » Fri Jul 22, 2022 7:36 pm

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
Cluster setup i7-9700 cpu @ 3.00ghz 32GB ram 1xDB WEB ARCH 11xTEL 4core
ViciBox v.9.0.3 ISO VERSION:2.14-853a BUILD: 220328-1420
SVN: 3595 DB Schema: 1657 | Asterisk 13.29.2-vici
Zoiper 5 | VICIPhone| No Digium/Sangoma Hardware
dhijrwn
 
Posts: 149
Joined: Tue Jan 07, 2020 6:12 am

Re: How to Force https?

Postby bronson » Sat Jul 23, 2022 10:30 am

this worked! thank you!
bronson
 
Posts: 96
Joined: Thu Oct 14, 2021 10:34 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 98 guests