2011-11-26 91 views
1

我安裝了Icinga 1.6.0beta,並嘗試使用此manual安裝它的新Web界面。但它是爲Apache編寫的。所以我使用下面的配置文件爲nginx運行界面,但沒有成功。我得到錯誤日誌中拒絕的目錄列表。任何幫助?Icinga + Nginx配置

注:/數據/開發商/ icinga-網絡符號鏈接到/ usr /本地/ icinga的Web

server { 
server_name developers.example.com; 
access_log /var/log/nginx/dev.access.log; 
error_log /var/log/nginx/dev.error.log; 
root /data/developers; 

location/{ 
    index index.html index.htm index.php; 
} 

location /icinga-web/js/ext3/ { 
    alias /usr/local/icinga-web/lib/ext3/; 
} 

location /icinga-web/ { 
    if (!-e $request_filename) { 
      rewrite ^(/icinga-web)(/.*)$ /icinga-web/index.php?$2 last; 
    } 
} 

try_files $uri $uri/ /icinga-web/index.php?$args; 
location ~ \.php$ { 
    include /etc/nginx/fastcgi_params; 

    fastcgi_split_path_info ^(/icinga-web)(/.*)$; 

    fastcgi_pass 127.0.0.1:9000; 
    fastcgi_index index.php; 
} 
} 

回答

0

我遇到了同樣的問題。我不得不放置以下行:

security.limit_extensions = .php .php5 .cgi 

進入php-fpm池配置文件。

當然,之後我把,我現在得到以下行錯誤:

Parse error: syntax error, unexpected '<' in /usr/local/icinga/sbin/tac.cgi on line 313 

但是,嘿,進步!