<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apache CGI problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095285#M443123</link>
    <description>Unless you change vital directives which effect memory allocation, such as StartServers, MaxClients etc. or mod_perl stuff&lt;BR /&gt;you do not need to fully restart your webserver after changes to httpd.conf.&lt;BR /&gt;It suffices to send the parent proc/thread a SIGUSR1 to have it gracefully reinitialize without your clients noticing, like e.g.&lt;BR /&gt;&lt;BR /&gt;kill -USR1 $(UNIX95= ps -C httpd -o pid= -o ppid=|awk '$2==1{print$1}')&lt;BR /&gt;&lt;BR /&gt;When you install your Nagios server there will be provided a preconfigured stub file with &lt;DIRECTORY&gt; containers especially for Nagios' web interface, which you simply need to copy into e.g. ServerRoot/conf.d/nagios.conf&lt;BR /&gt;Then you only need to put an Include directive in your httpd.conf&lt;BR /&gt;&lt;BR /&gt;Include conf.d/nagios.conf&lt;BR /&gt;&lt;BR /&gt;This reduces the clutter and keeps special Nagios settings in a separate file.&lt;BR /&gt;&lt;BR /&gt;The referred to dirs within the &lt;DIRECTORY&gt; tags need to be r-x for the user/group your webserver runs as.&lt;BR /&gt;&lt;BR /&gt;Also note to set the Order and AllowFrom directives correctly.&lt;BR /&gt;According to mod_auth's doc Apache does a&lt;BR /&gt;three-pass according to what the Order is set to.&lt;BR /&gt;I.e. if you have &lt;BR /&gt;&lt;BR /&gt;Order allow,deny&lt;BR /&gt;&lt;BR /&gt;Apache will first evaluate all Allow from directives.&lt;BR /&gt;Then in the second pass all Deny froms.&lt;BR /&gt;Finally if no rule matched so far the third pass sets deny as default rule.&lt;BR /&gt;This is in contrast to how most firewall rules are evaluated where the first match usually exits the chain.&lt;BR /&gt;&lt;BR /&gt;Always refer to Apache's logs/error_log&lt;BR /&gt;if something isn't working.&lt;BR /&gt;Chances are that there will be an explanatory error message.&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;/DIRECTORY&gt;</description>
    <pubDate>Mon, 03 Mar 2008 15:27:18 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2008-03-03T15:27:18Z</dc:date>
    <item>
      <title>Apache CGI problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095281#M443119</link>
      <description>I installed Nagios from the iexpress package and configured and started it. Modified the apache httpd.conf to include the nagios share and cgi location. When trying to run a cgi from apache, I get file not found even though the apache config has been updated. Here's my apache config. Anyone had a similar problem with apache on hp-ux? Thanks.&lt;BR /&gt;&lt;BR /&gt;ScriptAlias /nagios/cgi-bin "/opt/iexpress/nagios/sbin"&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;  Options ExecCGI&lt;BR /&gt;  AllowOverride AuthConfig&lt;BR /&gt;  Order allow,deny&lt;BR /&gt;  Allow from all&lt;BR /&gt;  AuthName "Nagios Access"&lt;BR /&gt;  AuthType Basic&lt;BR /&gt;  AuthUserFile /opt/iexpress/nagios/htpasswd.users&lt;BR /&gt;  Require valid-user&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Feb 2008 14:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095281#M443119</guid>
      <dc:creator>kel28_1</dc:creator>
      <dc:date>2008-02-29T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095282#M443120</link>
      <description>We need to restart apache after changing the configuration file, which I know you would have already done.&lt;BR /&gt;Verify permissions for the directory to the apache user are fine.&lt;BR /&gt;The url used for accessing should be http://&lt;PORTNO&gt;/nagios/cgi-bin/&lt;NAME of="" the="" cgi=""&gt;&lt;BR /&gt;Still if you see the same error, please copy paste the message from the error_log.&lt;BR /&gt;&lt;BR /&gt;&lt;/NAME&gt;&lt;/PORTNO&gt;</description>
      <pubDate>Mon, 03 Mar 2008 05:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095282#M443120</guid>
      <dc:creator>gmadhu</dc:creator>
      <dc:date>2008-03-03T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095283#M443121</link>
      <description>Gmadhu, thanks for your reply. If I put in the server:/nagios/cgi-bin/tac.cgi to run the tac.cgi, it works fine. If I try to launch from the side.html panel, the correct url shows up on the bottom of the screen, but doesn't launch. There are no errors in error_log.</description>
      <pubDate>Mon, 03 Mar 2008 14:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095283#M443121</guid>
      <dc:creator>kel28_1</dc:creator>
      <dc:date>2008-03-03T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095284#M443122</link>
      <description>Gmadhu, thanks for pointing me in the right direction. The problem was in the side.html configuration, wrong path. The problem is solved by pointing the cgi's to the correct path.</description>
      <pubDate>Mon, 03 Mar 2008 15:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095284#M443122</guid>
      <dc:creator>kel28_1</dc:creator>
      <dc:date>2008-03-03T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095285#M443123</link>
      <description>Unless you change vital directives which effect memory allocation, such as StartServers, MaxClients etc. or mod_perl stuff&lt;BR /&gt;you do not need to fully restart your webserver after changes to httpd.conf.&lt;BR /&gt;It suffices to send the parent proc/thread a SIGUSR1 to have it gracefully reinitialize without your clients noticing, like e.g.&lt;BR /&gt;&lt;BR /&gt;kill -USR1 $(UNIX95= ps -C httpd -o pid= -o ppid=|awk '$2==1{print$1}')&lt;BR /&gt;&lt;BR /&gt;When you install your Nagios server there will be provided a preconfigured stub file with &lt;DIRECTORY&gt; containers especially for Nagios' web interface, which you simply need to copy into e.g. ServerRoot/conf.d/nagios.conf&lt;BR /&gt;Then you only need to put an Include directive in your httpd.conf&lt;BR /&gt;&lt;BR /&gt;Include conf.d/nagios.conf&lt;BR /&gt;&lt;BR /&gt;This reduces the clutter and keeps special Nagios settings in a separate file.&lt;BR /&gt;&lt;BR /&gt;The referred to dirs within the &lt;DIRECTORY&gt; tags need to be r-x for the user/group your webserver runs as.&lt;BR /&gt;&lt;BR /&gt;Also note to set the Order and AllowFrom directives correctly.&lt;BR /&gt;According to mod_auth's doc Apache does a&lt;BR /&gt;three-pass according to what the Order is set to.&lt;BR /&gt;I.e. if you have &lt;BR /&gt;&lt;BR /&gt;Order allow,deny&lt;BR /&gt;&lt;BR /&gt;Apache will first evaluate all Allow from directives.&lt;BR /&gt;Then in the second pass all Deny froms.&lt;BR /&gt;Finally if no rule matched so far the third pass sets deny as default rule.&lt;BR /&gt;This is in contrast to how most firewall rules are evaluated where the first match usually exits the chain.&lt;BR /&gt;&lt;BR /&gt;Always refer to Apache's logs/error_log&lt;BR /&gt;if something isn't working.&lt;BR /&gt;Chances are that there will be an explanatory error message.&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;/DIRECTORY&gt;</description>
      <pubDate>Mon, 03 Mar 2008 15:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-problem/m-p/5095285#M443123</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-03-03T15:27:18Z</dc:date>
    </item>
  </channel>
</rss>

