我需要在gentoo上安装mariadb、apache2、php、icinga2和icingaweb2。
根据文档,我成功地安装了mariadb、apache2、(可能) php和icinga2。
目前(根据日志),icinga2运行时没有错误。但是,我无法正确配置icingaweb2。
是否有任何文档/教程如何在gentoo中配置icingaweb2?
此时,我只需要在端口80上获得一个没有LDAP的基本HTTP设置。(稍后我将使用ssl安全性和域。)
从这些文档中还不清楚我犯了什么错误。
https://icinga.com/docs/icingaweb2/latest/doc/02-Installation/
https://icinga.com/docs/icinga2/latest/doc/02-installation/
https://www.cs.uni-potsdam.de/~pveber/apache.html
目前只有http://localhost响应(默认的apache消息“它工作!”)
在http://localhost/icingaweb2,http://icingaweb2/icingacli,http://icingaweb2/setup等.没什么
我不知道在/var/www/或/usr/share/ icingaweb2 2/public/中必须将icingaweb2文档根目录放在哪里。
在my /etc/apache2/vhosts.d/00_defaultvhost.conf中是:
##mmtest
Options SymLinksIfOwnerMatch
AllowOverride None
DirectoryIndex index.php
# Apache 2.4
Require all granted
# Apache 2.2
Order allow,deny
Allow from all
SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
EnableSendfile Off
RewriteEngine on
RewriteBase /icingaweb2/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
DirectoryIndex error_norewrite.html
ErrorDocument 404 /icingaweb2/error_norewrite.html
# Remove comments if you want to use PHP FPM and your Apache version
# is greater than or equal to 2.4
# = 2.4>
# # Forward PHP requests to FPM
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
#
# SetHandler "proxy:fcgi://127.0.0.1:9000"
# ErrorDocument 503 {urlPath}/error_unavailable.html
#
# 发布于 2019-10-01 10:17:52
在/etc/apache2/vhosts.d/default_vhost.include中,我必须放置行
Include /etc/apache2/vhosts.d/99_icingaweb2.include这一行在文件的末尾。在上一个现有标签之后。
在99_icingaweb2.include中是:
Alias /icingaweb2 /usr/share/icingaweb2/public
Options SymLinksIfOwnerMatch
AllowOverride None
DirectoryIndex index.php
# Apache 2.4
Require all granted
SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
EnableSendfile Off
RewriteEngine on
RewriteBase /icingaweb2/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
DirectoryIndex error_norewrite.html
ErrorDocument 404 /icingaweb2/error_norewrite.html
# Remove comments if you want to use PHP FPM and your Apache version
# is greater than or equal to 2.4
# = 2.4>
# # Forward PHP requests to FPM
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
#
# SetHandler "proxy:fcgi://127.0.0.1:9000"
# ErrorDocument 503 {urlPath}/error_unavailable.html
#
# https://unix.stackexchange.com/questions/544457
复制相似问题