<div>Hi James,</div>
<div> </div>
<div>You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not know how to find out the directory, Apache on my system refers to '/etc/httpd/conf.d/'.</div>
<div> </div>
<div>However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to the default location). Still, I am getting the same error on doing a 'sudo make install-webconf'.</div>

<div> </div>
<div>=-=-=-=</div>
<div> </div>
<div>I had raised a query on the Apache forum, on which of <strong>apache2.conf</strong> and <strong>httpd.con</strong>f is the <em>config file</em> of Apache. I got an answer stating that it depends on type of installation method followed. If the source files (.tar.gz) are used, then it is <strong>httpd.conf</strong>, else, <strong>apache2.conf</strong>. So, it is true in my case.</div>

<div> </div>
<div>Based on this, I observed an already installed Nagios setup on a different machine. It's <em>config file</em> is <strong>apache2.conf</strong> (again true, it was installed using Synaptic Package Manager).</div>

<div> </div>
<div>So, I was thinking to try installing using the 'Synaptic Package Manager' or 'apt-get'. However, both aren't working for me. Though I am able to proxy the internet (sitting behind a proxy server), Synaptic & sudo apt-get say, they cannot resolve '<a href="http://archive.ubuntu.com">archive.ubuntu.com</a>', etc.</div>

<div> </div>
<div>Any idea, how to go about?</div>
<div> </div>
<div>Thanks,</div>
<div>Jim</div>
<div> </div>
<div>=-=-=-=</div>
<div><br> </div>
<div class="gmail_quote">On Tue, Apr 14, 2009 at 3:50 AM, James Pratt <span dir="ltr"><<a href="mailto:jpratt@norwich.edu">jpratt@norwich.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi - sounds like your issue is that the generic make install in nagios<br>src tries to drop a file called nagios.conf into httpd's (usually the<br>
default) location, /etc/httpd/conf.d/, which, appears does not exist on<br>your server...<br><br>If you can find what directory your apache uses for "/etc/httpd/conf.d/"<br>you can manually copy and paste whatever is in nagios.conf (the one<br>
trying to be installed from nagios src dir) into your<br>"/etc/httpd/conf/httpd.conf" (You can likely disregard the<br>"apache2.conf" stuff - sounds like they used their own file naming, as<br>the default is normally "httpd.conf")  - Apache itself is very flexible,<br>
there are many ways to configure it - nagios simply guesses you are<br>using redhat, so it tries to drop it's httpd config into<br>/etc/httpd/conf.d)<br><br>HTH ...<br><br>Regards,<br>jamie<br>
<div class="im"><br>> -----Original Message-----<br>> From: Jimmyboy [mailto:<a href="mailto:jimmyjose2980@gmail.com">jimmyjose2980@gmail.com</a>]<br>> Sent: Monday, April 13, 2009 2:25 PM<br>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
</div>
<div class="im">> Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios<br>3.0<br>><br></div>
<div class="im">> Hi,<br>><br>> On reading <a href="https://help.ubuntu.com/8.10/serverguide/C/httpd.html" target="_blank">https://help.ubuntu.com/8.10/serverguide/C/httpd.html</a>, I<br>> understand that /etc/apache2/apache2.conf is the most important file.<br>
> Though I have installed Apache in /etc/apache2 location, I do not have<br>> apache2.conf file as mentioned in the site.<br>><br>> However, when I stop/start the Apache service using the command<br>> '/etc/apache2/bin/apachectl -k stop/start' respectively, and check<br>
</div>> <a href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a> <<a href="http://127.0.0.1/" target="_blank">http://127.0.0.1/</a>>  and ps -A | grep httpd, the<br>
<div class="im">results<br>> are OK.<br>><br>> Thanks,<br>> Jim<br>><br>> =-=-=-=-=<br>><br>><br>> ---------- Forwarded message ----------<br>> From: Jimmyboy <<a href="mailto:jimmyjose2980@gmail.com">jimmyjose2980@gmail.com</a>><br>
> Date: Mon, Apr 13, 2009 at 11:49 PM<br>> Subject: Apache Server configuration for Nagios 3.0<br>> To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>><br>><br>
><br>> Hi All,<br>><br>> I am following the Quickstart Guide for installing NAGIOS using<br>> <a href="http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html</a>.<br>
><br>> One of the prerequisites is Apache2, which I installed, and was<br>successful<br></div>> in getting "It Works!!" for <a href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a> <<a href="http://127.0.0.1/" target="_blank">http://127.0.0.1/</a>> .<br>

<div>
<div></div>
<div class="h5">><br>> However, I am stuck at point 5) Configure the Web Interface, make<br>install-<br>> webconf.<br>><br>> When this command is issued, this is what I get.<br>> /usr/bin/install -c -m 644 sample-config/httpd.conf<br>
> /etc/httpd/conf.d/nagios.conf<br>> /usr/bin/install: cannot create regular file<br>> '/etc/httpd/conf.d/nagios.conf': No such file or directory<br>> make: *** [install-webconf] Error 1<br>><br>> Prefix for Apache: /etc/apache2<br>
><br>> I believe the httpd.conf file and a few others also need to be edited<br>for<br>> Nagios. Can some please guide me through this?<br>><br>><br>> Thanks,<br>> Jim<br>><br>><br><br></div></div>
</blockquote></div><br>