Hi Jeremy First of all, let me know if you ever visit london and the beers are on me. I can see the initial xymon page :))) I can finally start adding hosts now and use it.
I removed the entries from the apache-config file and copied the xymon-apache.conf to etc/httpd/conf.d. Restarted apache then typed servername/xymon and it worked. When I copied xymon-apache.conf the file was already in /etc/httpd/conf.d because I was prompted to overwrite it. I don't know what I was doing wrong before. I guess I messed up the apache-config file and not knowing much about it I couldn't understand what was going on but since I am planning to use xymon I should find some apache information and try to understand what each line means and does. Thank you very much for your detailed explanation to my posts and for the HowTo's. Many thanks Yanni I removed entries from http.conf andNo, don't add the include directive. After removing the configuration
entries from httpd.conf, simply copy the file into conf.d. For example: cp /opt/xymon/server/etc/xymon-apache.conf /etc/httpd/conf.d/
/etc/httpd/conf.d/
On October 20, 2011 at 6:39 AM Jeremy Laidman <jlaidman at rebel-it.com.au> wrote:
On Thu, Oct 20, 2011 at 12:58 AM, Yanni <y.goudetsidis at mail.cryst.bbk.ac.uk> wrote:
Hi Jeremy
The reason I am using /opt/xymon is because I thought it would be a good idea to keep everything related to xymon inside /opt so that I will not have to look into different directories when I am looking for any xymon files.
This is a good reason to put the _files_ into /opt/xymon/. But URL part of the alias/scriptalias is different. For instance, you have this in your ScriptAlias line:
ScriptAlias /opt/xymon/xymon-cgi/ "/opt/xymon/cgi-bin/"
This means the URL to access the CGI scripts would be http://servername/opt/xymon/xymon-cgi/scriptname. The "/opt/xymon" part is not necessary, and I suspect that links within Xymon will not use it. Instead, you probably need to have this:
ScriptAlias /xymon-cgi/ "/opt/xymon/cgi-bin/"
In that way, the browser knows the URL path as /xymon-cgi/ but Apache translates this to /opt/xymon/cgi-bin/.
Please see the outputs below. I excluded the commented lines that contained the words 'include' and 'Alias' from the outputs.
Thanks, the comments wouldn't help.
The grep output shows no "Alias /xymon/". The first non-comment line in my xymon-apache.conf file defines this. I would imagine yours should have:
Alias /xymon/ "/opt/xymon/www/"
Include conf.d/*.conf
This confirms that any .conf file inside the conf.d directory will automatically get included in the config when Apache reloads. Good.
I will try what you suggested. I will remove the content of xymon-apache.conf from httpd.cond and then I will add an 'include' line in httpd.conf like this:
Include /opt/xymon/server/etc/xymon-apache.conf
No, don't add the include directive. After removing the configuration entries from httpd.conf, simply copy the file into conf.d. For example: cp /opt/xymon/server/etc/xymon-apache.conf /etc/httpd/conf.d/
Don't forget to restart Apache.
Cheers Jeremy