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;
}
}