![](/img/trans.png)
[英]Nagios - Can't access the hosts and services on nagios web interface
[英]Nagios web interface access without slash at localhost
如何在不使用本地主機上的斜杠的情況下訪問Nagios Web界面? 例如,輸入IP地址時,我需要訪問nagios。 換句話說,我不想使用斜線,如下所示:192.168.123.122/nagios
我認為您正在尋找的是Apache中的基本URL重定向匹配。
這樣,轉到http://192.168.123.122會將您重定向到http://192.168.123.122/nagios
在文件中:
/etc/apache/apache2.conf
添加以下行
<Directory />
Options FollowSymLinks
AllowOverride None
RedirectMatch ^/$ /nagios
</Directory>
重新啟動Apache,您應該一切順利。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.