暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

etc_apache2_sites-available_grafana.j2 1005B

12345678910111213141516171819202122232425262728
  1. <VirtualHost *:80>
  2. ServerName {{ grafana_subdomain }}.{{ item.name }}
  3. ServerAlias {{ grafana_subdomain }}
  4. Redirect temp / https://{{ grafana_subdomain }}.{{ item.name }}/
  5. </VirtualHost>
  6. <VirtualHost *:443>
  7. ServerName {{ grafana_subdomain }}.{{ item.name }}
  8. ServerAlias {{ grafana_subdomain }}
  9. SSLEngine On
  10. DocumentRoot "{{ item.doc_root }}"
  11. DirectoryIndex index.html
  12. Options -Indexes
  13. HostnameLookups Off
  14. LogLevel warn
  15. ErrorLog /var/log/apache2/grafana.info-error_log
  16. CustomLog /var/log/apache2/grafana.info-access_log common
  17. Alias /mqtt /var/www/mqtt-admin
  18. ProxyPassMatch ^/mqtt !
  19. ProxyRequests Off
  20. ProxyPreserveHost On
  21. ProxyPass / http://localhost:{{ grafana_internal_port }}/
  22. ProxyPassReverse / http://localhost:{{ grafana_internal_port }}/
  23. </VirtualHost>