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?
Setting up Apache VirtualHost to load a specific graph tree
Moderators: Developers, Moderators
Re: Setting up Apache VirtualHost to load a specific graph t
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.
- 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
You should upgrade to 088a, then. It's the same amount of labor compared to other upgrades but implements the latest version
R.
R.
Who is online
Users browsing this forum: No registered users and 0 guests