Setting up Apache VirtualHost to load a specific graph tree

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
halfabee
Posts: 2
Joined: Wed Nov 14, 2012 12:02 pm

Setting up Apache VirtualHost to load a specific graph tree

Post by halfabee »

I want to be able to define multiple Apache Virtual hosts that will each open a specific tree view. For example, the URL http://app1dashboard would go to graph_view.php?action=tree&tree_id=10 and http://app2dashboard would go to graph_view.php?action=tree&tree_id=11.

in the httpd.conf I set up the entry for app1dashboard so that the DirectoryIndex contains the tree_id:

<VirtualHost *:80>
ServerAdmin ...
DocumentRoot /usr/local/apache2/htdocs/cacti
DirectoryIndex graph_view.php?action=tree&tree_id=10
ServerName app1dashboard
ErrorLog ...
CustomLog ...
</VirtualHost>

But when I go to http://app1dashboard it redirects to

http://app1dashboard/graph_view.php?act ... e&tree_id=

I am using non-authenticated access, and the guest account is set up to 'show the page the user pointed their browser to'.

Is there a way to make this work?
halfabee
Posts: 2
Joined: Wed Nov 14, 2012 12:02 pm

Re: Setting up Apache VirtualHost to load a specific graph t

Post by halfabee »

OK, I guess there is a way to make this work - upgrade Cacti to a newer version. This appears to work properly in 0.8.7g. Time to plan an upgrade.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Setting up Apache VirtualHost to load a specific graph t

Post by gandalf »

You should upgrade to 088a, then. It's the same amount of labor compared to other upgrades but implements the latest version
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest