How can I close HTTPS/SSL of Cacti

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
cristanhsu
Posts: 9
Joined: Mon Feb 07, 2022 9:03 pm

How can I close HTTPS/SSL of Cacti

Post by cristanhsu »

Help!

I opened HTTPS/SSL in the configuration/settings, after that i could not access http://192.168.12.16:8083/cacti, it always requests me to use https://192.168.12.16:8083/cacti, not http;
I reinstall cacti, the issue is still there, but I can access http://192.168.12.16:8083, apache testing is good, is there any way I can go back to use http service? and which file I can modify to go back normal?
I use centos7.

Thanks a lot
cristanhsu
Posts: 9
Joined: Mon Feb 07, 2022 9:03 pm

Re: How can I close HTTPS/SSL of Cacti

Post by cristanhsu »

I didn't install mod_ssl
cristanhsu
Posts: 9
Joined: Mon Feb 07, 2022 9:03 pm

Re: How can I close HTTPS/SSL of Cacti

Post by cristanhsu »

Done!

viewtopic.php?t=57278

You can go to <cacti path>/incloud/global.php and edit force_https = off

if (read_config_option('force_https') == 'off') {
if (!isset($_SERVER['HTTPS']) && isset($_SERVER['HTTP_HOST']) && isset($_SERVER['REQUEST_URI'])) {
Header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . "\n\n");
exit;
}
}
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: How can I close HTTPS/SSL of Cacti

Post by netniV »

force_ssl is a default setting which you can edit in the mysql settings table. you can also change it by the settings menu.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest