我正试着给图书馆加盐。在替换原始图书管理配置文件时,我希望ServerName是FQDN,而不是Ip地址。network.get_fqdn还返回IP地址。
{%- from "librenms/map.jinja" import librenms with context -%}
<VirtualHost *:80>
DocumentRoot /opt/librenms/html/
ServerName {{ network.get_fqdn }}ServerName {颗粒‘4’}
AllowEncodedSlashes NoDecode
<Directory "/opt/librenms/html/">
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
</VirtualHost>我会感谢你的帮助。
发布于 2019-02-18 15:12:02
您可以尝试使用:
我会避免使用:
否则,如果它符合您的需要,您也可以尝试不使用ServerName设置。
https://stackoverflow.com/questions/54742305
复制相似问题