首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用apache vHost运行icinga?

如何使用apache vHost运行icinga?
EN

Server Fault用户
提问于 2012-02-03 20:18:57
回答 1查看 4.1K关注 0票数 2

我已经在我的debian压缩框上安装了icinga自带的repos,但是现在我不知道如何更改当前的配置:

代码语言:javascript
复制
# apache configuration for icinga

  ScriptAlias /cgi-bin/icinga /usr/lib/cgi-bin/icinga
  ScriptAlias /icinga/cgi-bin /usr/lib/cgi-bin/icinga

# Where the stylesheets (config files) reside
  Alias /icinga/stylesheets /etc/icinga/stylesheets

# Where the HTML pages live
  Alias /icinga /usr/share/icinga/htdocs

    <DirectoryMatch (/usr/share/icinga/htdocs|/usr/lib/cgi-   bin/icinga|/etc/icinga/stylesheets)>
      Options FollowSymLinks

      DirectoryIndex index.html

      AllowOverride AuthConfig
      #Order Deny, Allow
      Deny from all
      #Allow From 10.42.0.0/24

      AuthName "Icinga Access"
      AuthType Basic
      AuthUserFile /etc/icinga/htpasswd.users
      require valid-user
    </DirectoryMatch>

我想在子域monitoring.mysite.com下运行icinga,但是我无法使这个配置成为一个工作的vHost配置。有谁能说出我要改变的吗?

EN

回答 1

Server Fault用户

发布于 2012-02-06 15:07:49

也许是因为没有VirtualHost、ServerName或DocumentRoot指令?

根据您的配置,用IP替换星号,但是星号是标准过程。

代码语言:javascript
复制
# apache configuration for icinga
<VirtualHost *:80>
    ServerName monitoring.mysite.com
    DocumentRoot /usr/share/icinga/htdocs

    ScriptAlias /cgi-bin/icinga /usr/lib/cgi-bin/icinga
    ScriptAlias /icinga/cgi-bin /usr/lib/cgi-bin/icinga

    # Where the stylesheets (config files) reside
    Alias /icinga/stylesheets /etc/icinga/stylesheets

    # Where the HTML pages live
    Alias /icinga /usr/share/icinga/htdocs

    <DirectoryMatch (/usr/share/icinga/htdocs|/usr/lib/cgi-bin/icinga|/etc/icinga/stylesheets)>
        Options FollowSymLinks

        DirectoryIndex index.html

        AllowOverride AuthConfig
        Order Deny, Allow
        #Deny from All
        #Allow From 10.42.0.0/24

        AuthName "Icinga Access"
        AuthType Basic
        AuthUserFile /etc/icinga/htpasswd.users
        Require valid-user
    </DirectoryMatch>
</VirtualHost>
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/356690

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档