Setting up apache vhost for Icinga

Posted by DKNUCKLES on Server Fault See other posts from Server Fault or by DKNUCKLES
Published on 2012-12-13T21:18:19Z Indexed on 2012/12/14 23:07 UTC
Read the original article Hit count: 208

Filed under:
|
|

It's been a while since I've worked with Apache so please be kind - I'm also aware of this question but it hasn't been much help to me.

I'd like to set up a simple vHost w/ Apache for my Icinga instance. Icinga is up and running and I can access it from x.x.x.x/icinga, however would like to be able to access it externally as well as internally.

I have set up the /etc/hosts file and the following is my barebones vhost statement in httpd.conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /usr/share/icinga
    ServerName icinga.domain.com
    ErrorLog logs/icinga.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

I also have the following in my .htaccess file

<Directory>
        Allow From All
        Satisfy Any
</Directory>

An entry has been made for the instance in the Windows DNS server on my network, however when I try to access the site by URL I am greeted with Internal Server Error.

Reviewing the /var/log/icinga.com-error_log I see the following entry.

[Thu Dec 13 16:04:39 2012] [alert] [client 10.0.0.1] /usr/share/icinga/.htaccess: <Directory not allowed here

Can someone help me spot the error of my ways?

© Server Fault or respective owner

Related posts about apache2

Related posts about monitoring