<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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>
    ​​Hi Jeremy<br />
     <br />
    The reason I am using /opt/xymon is because I thought it would be a good idea to keep everything related to xymon inside<br />
    /opt so that I will not have to look into different directories when I am looking for any xymon files.<br />
    <br />
    Please see the outputs below. I excluded the commented lines that contained the words 'include' and 'Alias' from the outputs.<br />
     <br />
    <br />
    <span style="text-decoration: underline;">Output of:</span> grep -i "alias" /etc/httpd/conf/*.conf<br />
    <br />
    Alias /icons/ "/var/www/icons/"<br />
    Alias /error/ "/var/www/error/"<br />
    LoadModule authn_alias_module modules/mod_authn_alias.so<br />
    LoadModule vhost_alias_module modules/mod_vhost_alias.so<br />
    LoadModule alias_module modules/mod_alias.so<br />
     <br />
    Alias /icons/ "/var/www/icons/"<br />
     <br />
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"<br />
     <br />
    Alias /error/ "/var/www/error/"<br />
    _______________________________________________________<br />
     <br />
    <span style="text-decoration: underline;">Output of</span>:  grep -i "include" /etc/httpd/conf/*.conf<br />
     <br />
    LoadModule include_module modules/mod_include.so<br />
    Include conf.d/*.conf<br />
    <br />
    AddOutputFilter INCLUDES .shtml<br />
    <br />
    <IfModule mod_include.c><br />
            Options IncludesNoExec<br />
            AddOutputFilter Includes html<br />
    ________________________________________<br />
    <br />
     <br />
    I will try what you suggested. I will remove the content of 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 />
    I will try that and report back.<br />
    <br />
    Many thanks<br />
    Yanni<br />
    <br />
    <br />
    <br />
    <br />
    On October 18, 2011 at 2:35 AM Jeremy Laidman <jlaidman@rebel-it.com.au> wrote:<br />
    <br />
    > Yanni<br />
    ><br />
    > Your egrep output doesn't show the "Alias" line 1011 of httpd.conf.<br />
    > This is because my egrep was trying to be too clever and won't match<br />
    > "Alias" at the start of a line.  The same would be true for "include"<br />
    > directives.  Can you send what this shows:<br />
    ><br />
    >   grep -i "alias" /etc/httpd/conf/*.conf<br />
    >   grep -i "include" /etc/httpd/conf/*.conf<br />
    ><br />
    > Is there a reason why you're using "/opt/xymon" in your URL path<br />
    > instead of say "/xymon"?  My Alias command looks like this:<br />
    ><br />
    >   Alias /xymon/ "/var/lib/xymon/www/"<br />
    ><br />
    > I can't think why this would be a problem.  Just a curiosity.<br />
    ><br />
    > >From what you have shown, it seems you have defined ScriptAlias twice:<br />
    > once in httpd.conf and once in xymon-apache.conf.  You should remove<br />
    > all Xymon configuration from httpd.conf and instead let the settings<br />
    > in xymon-apache.conf be taken by Apache when it includes the file.<br />
    > You will have either "include *.conf" or "include xymon-apache.conf",<br />
    > and so you don't need to add anything into httpd.conf.<br />
    ><br />
    > Cheers<br />
    > Jeremy​ <br />
  </body>
</html>