Ad Widget

Collapse

Opensuse 11.4 zabbix.conf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PeteH
    Junior Member
    • Apr 2011
    • 8

    #1

    Opensuse 11.4 zabbix.conf

    Hi,
    Does anybody have a zabbix.conf they would care to share for opensuse? Basically I've copied the frontends/php into srv/www/htdocs/zabbix but I now need a conf file so that I can access the folder without a 403 error and that allows any browser to http://<ip address>/zabbix to get to the web page.

    My best attempt thus far for a zabbix.conf looks like

    <IfDefine ZABBIX>
    Alias /zabbix/ "/srv/www/htdocs/zabbix/"
    <Directory "/srv/www/htdocs/zabbix/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from 127.0.0.1
    Allow from 192.168.0.0/16
    Allow from 10.0.0.0/8
    </Directory>
    # <DirectoryMatch "/usr/share/zabbix/(conf|api|include)>
    # Order Deny,Allow
    # Deny from All
    # <files *.php>
    # Order Deny,Allow
    # Deny from All
    # </files>
    # </DirectoryMatch>
    </IfDefine>

    But that's not doing it. I appreciate this is more of an apache question but I suspect that this is the place to ask because somebody is bound to have done this before.

    Pete
  • badener
    Member
    • Sep 2009
    • 42

    #2
    Hi,

    I use a setup with virtual hosts:

    <VirtualHost *:80>

    ServerName zabbix.domain
    ServerAlias zabbix


    SSLEngine off

    CustomLog /var/log/httpd.access_log combined

    DocumentRoot "/opt/httpd/zabbix"

    DirectoryIndex index.php


    <Directory "/opt/httpd">
    Options FollowSymLinks
    #AllowOverride None
    ##wegen .htaccess File
    AllowOverride FileInfo
    Order allow,deny
    Allow from all
    </Directory>

    <Directory "/opt/httpd/zabbix">
    Options FollowSymLinks
    #AllowOverride None
    ##wegen .htaccess File
    AllowOverride FileInfo
    Order allow,deny
    Allow from all
    </Directory>

    </VirtualHost>


    I need the Directory entry for /opt/httpd because zabbix is just a symlink to zabbix-1.8.7 (or any other version) this enables me to switch back to older versions without having to edit the httpd.conf, just by changing the target for the symlink.

    Comment

    Working...