0
我無法理解如何重新配置初始zabbix.conf文件以不劫持端口80開箱即用。zabbix.conf重定向到另一個端口
這裏是由應用程序提供的默認zabbix.conf:
#
# Zabbix monitoring system php web frontend
#
Alias /zabbix /usr/share/zabbix
<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride None
Require all granted
<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
</IfModule>
</Directory>
<Directory "/usr/share/zabbix/conf">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/app">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/include">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/local">
Require all denied
</Directory>
我希望能夠做的是什麼配置我ZABBIX類似於如何我已經做了我的服務器這樣的其他應用程序。該服務器上實際上已經有2個應用程序。 JIRA這是一個反向代理服務器端口8080和匯合這是一個反向代理服務器端口8090我想有一個反向代理另一個端口ZABBIX,說:8070
<VirtualHost *:80>
ServerName zabbix.domain.com
ServerAlias zabbix
Redirect/https://zabbix.domain.com
</VirtualHost>
<VirtualHost *:443>
ServerName zabbix.domain.com
ServerAlias zabbix
Include ssl/default/ssl.cfg
ProxyPass/http://localhost:8070/
ProxyPassReverse/http://localhost:8070/
</VirtualHost>
問題是這並未」將不起作用,因爲的zabbix假設運行說什麼都沒用端口80
做這樣的事情只是給沒有顯示的頁面
Alias /zabbix /usr/share/zabbix
<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride None
Require all granted
<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
</IfModule>
</Directory>
<Directory "/usr/share/zabbix/conf">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/app">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/include">
Require all denied
</Directory>
<Directory "/usr/share/zabbix/local">
Require all denied
</Directory>
<VirtualHost *:80>
ServerName zabbix.domain.com
ServerAlias zabbix
Redirect/https://zabbix.domain.com
</VirtualHost>
<VirtualHost *:443>
ServerName zabbix.domain.com
ServerAlias zabbix
Include ssl/default/ssl.cfg
ProxyPass/http://localhost:80/
ProxyPassReverse/http://localhost:80/
</VirtualHost>