Changing Cacti root url

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

Moderators: Developers, Moderators

Post Reply
andyb
Posts: 4
Joined: Sun Aug 31, 2014 1:21 am
Location: Kent, UK

Changing Cacti root url

Post by andyb »

Hi guys,

Sorry for this, I'm having a bad day!

I've been playing with Cacti on a 32bit CentOS 6.5 Virtual Box installation for the last few days prior to installing on a 64 bit server at work.

The one simple thing I can't get my head around is changing the root url of the installation from http://server.domain/cacti to https://server.domain.

Looking at config.php I see:

Code: Select all

/*
   Edit this to point to the default URL of your Cacti install
   ex: if your cacti install as at http://serverip/cacti/ this
   would be set to /cacti/
*/
//$url_path = "/cacti/";
$url_path appears to be commented out, removing the comments and changing to $url_path to "/" doesn't appear to have the desired effect.

Generating the certificate is no problem (we have an in-house certificate server) however I'm getting "lost" when tweaking httpd.conf and cacti.conf.

Please can some kind soul point me in the right direction?

Thanks!

Andy B.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Changing Cacti root url

Post by cigamit »

You will need to change that, and you need to change your apache config file. The cacti config is there just so images and plugins work correctly with your url path, everything else is done in your apache config.
andyb
Posts: 4
Joined: Sun Aug 31, 2014 1:21 am
Location: Kent, UK

Re: Changing Cacti root url

Post by andyb »

Thanks for that - I'll go play again...

Andy B.
andyb
Posts: 4
Joined: Sun Aug 31, 2014 1:21 am
Location: Kent, UK

Re: Changing Cacti root url

Post by andyb »

Doh! thanks, said I was having a bad day! :D

It was the "Alias /cacti /usr/share/cacti" in cacti.conf that caught me out...

Andy B.

Afterthought...

It might be better to put the whole cacti configuration in cacti.conf as you would a virtual host - much less confusing...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests