<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <title></title>
  </head>

  <body>
    <p style="margin: 0px;">Hi Jeremy</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">First of all, let me know if you ever visit london and the beers are on me.</p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;"><span>I can see the initial xymon page :))) I can finally start adding hosts now and use it.</span></p>

    <p style="margin: 0px;"><span><br />
    </span></p>

    <p style="margin: 0px;">I removed the entries from the apache-config file and copied the xymon-apache.conf to etc/httpd/conf.d.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Restarted apache then typed servername/xymon and it worked.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">When I copied xymon-apache.conf the file was already in /etc/httpd/conf.d because I was prompted to overwrite it.</p>

    <p style="margin: 0px;">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</p>

    <p style="margin: 0px;">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.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Thank you very much for your detailed explanation to my posts and for the HowTo's.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Many thanks</p>

    <p style="margin: 0px;">Yanni</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;"><span>I removed entries from http.conf and</span> No, don't add the include directive.  After removing the configuration<br />
    > entries from httpd.conf, simply copy the file into conf.d.  For<br />
    > example:<br />
    >   cp /opt/xymon/server/etc/xymon-apache.conf /etc/httpd/conf.d/<br />
    ></p>

    <p style="margin: 0px;">/etc/httpd/conf.d/</p>

    <p> </p>

    <div style="margin: 5px 0px 5px 0px; font-family: monospace;">
      On October 20, 2011 at 6:39 AM Jeremy Laidman <jlaidman@rebel-it.com.au> wrote:<br />
      <br />
      > On Thu, Oct 20, 2011 at 12:58 AM, Yanni<br />
      > <y.goudetsidis@mail.cryst.bbk.ac.uk> wrote:<br />
      > > Hi Jeremy<br />
      > ><br />
      > > The reason I am using /opt/xymon is because I thought it would be a good<br />
      > > idea to keep everything related to xymon inside<br />
      > > /opt so that I will not have to look into different directories when I am<br />
      > > looking for any xymon files.<br />
      ><br />
      > This is a good reason to put the _files_ into /opt/xymon/.  But URL<br />
      > part of the alias/scriptalias is different.  For instance, you have<br />
      > this in your ScriptAlias line:<br />
      ><br />
      > ScriptAlias /opt/xymon/xymon-cgi/ "/opt/xymon/cgi-bin/"<br />
      ><br />
      > This means the URL to access the CGI scripts would be<br />
      > http://servername/opt/xymon/xymon-cgi/scriptname.  The "/opt/xymon"<br />
      > part is not necessary, and I suspect that links within Xymon will not<br />
      > use it.  Instead, you probably need to have this:<br />
      ><br />
      > ScriptAlias /xymon-cgi/ "/opt/xymon/cgi-bin/"<br />
      ><br />
      > In that way, the browser knows the URL path as /xymon-cgi/ but Apache<br />
      > translates this to /opt/xymon/cgi-bin/.<br />
      ><br />
      > > Please see the outputs below. I excluded the commented lines that contained<br />
      > > the words 'include' and 'Alias' from the outputs.<br />
      ><br />
      > Thanks, the comments wouldn't help.<br />
      ><br />
      > The grep output shows no "Alias /xymon/".  The first non-comment line<br />
      > in my xymon-apache.conf file defines this.  I would imagine yours<br />
      > should have:<br />
      ><br />
      > Alias /xymon/ "/opt/xymon/www/"<br />
      ><br />
      > > Include conf.d/*.conf<br />
      ><br />
      > This confirms that any .conf file inside the conf.d directory will<br />
      > automatically get included in the config when Apache reloads.  Good.<br />
      ><br />
      > > I will try what you suggested. I will remove the content of<br />
      > > xymon-apache.conf from httpd.cond and then I will add<br />
      > > an 'include' line in httpd.conf like this:<br />
      > ><br />
      > > Include /opt/xymon/server/etc/xymon-apache.conf<br />
      ><br />
      > No, don't add the include directive.  After removing the configuration<br />
      > entries from httpd.conf, simply copy the file into conf.d.  For<br />
      > example:<br />
      >   cp /opt/xymon/server/etc/xymon-apache.conf /etc/httpd/conf.d/<br />
      ><br />
      > Don't forget to restart Apache.<br />
      ><br />
      > Cheers<br />
      > Jeremy
    </div>
  </body>
</html>