Ad Widget

Collapse

Endereço Frontend Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JCast638
    Junior Member
    • Nov 2018
    • 18

    #1

    Endereço Frontend Zabbix

    Prezados,

    Alguem pode me ajudar referente ao endereço do frontend do Zabbix - trelacionado a configuração do Apache.

    Situação:

    Tenho acesso ao meu Zabbix pelo endereço 10.10.10.30/zabbix.

    Gostaria de ter o acesso ao frontend do Zabbix sem ter que colocar /zabbix no final do endereço, alguem me ajuda?

    Saudações...
  • Hernandes Martins
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2011
    • 900

    #2
    olá meu caro,

    Para realizar está configuração corretamente sugiro pesquisar por "virtual hosts" , "configurar virtual hosts", "criar virtual hosts apache", dessa forma você irá obter o resultado desejado.

    Abraços
    __

    Att.
    Hernandes Martins - Zabbix Trainer

    Zabbix Brazil Partner - www.luniobr.com

    Zabbix Brazil Community - www.zabbixbrasil.org

    Blog: hernandesmartins.blogspot.com.br

    Skype: hernandss
    Telegram: @MrHernandes

    Español
    Facebook: facebook.com/groups/zabbixlatam
    Telegram: https://t.me/ZabbixEspañol

    Português
    Facebook: facebook.com/groups/zabbixbrasil/
    Telegram: https://t.me/ZabbixBrasil

    Comment

    • JCast638
      Junior Member
      • Nov 2018
      • 18

      #3
      Olá Pessoal,

      Tive um tempo agora pela manhã e consegui o resultado desejado criando um virtual host nas configurações do apache, segue:

      Arquivo de config no meu caso: /etc/apache2/sites-enabled/000-default.conf

      Adicionado estas linhas na configuração:

      ServerName www.nomedosite.com.br
      ServerAlias www.nomedosite.com.br
      DocumentRoot /usr/share/zabbix
      ServerAdmin webmaster@localhost


      Resultado final arquivo /etc/apache2/sites-enabled/000-default.conf :

      <VirtualHost *:80>
      # The ServerName directive sets the request scheme, hostname and port that
      # the server uses to identify itself. This is used when creating
      # redirection URLs. In the context of virtual hosts, the ServerName
      # specifies what hostname must appear in the request's Host: header to
      # match this virtual host. For the default virtual host (this file) this
      # value is not decisive as it is used as a last resort host regardless.
      # However, you must set it for any further virtual host explicitly.
      #ServerName www.example.com

      ServerName www.nomedosite.com.br
      ServerAlias www.nomedosite.com.br
      DocumentRoot /usr/share/zabbix
      ServerAdmin webmaster@localhost


      # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
      # error, crit, alert, emerg.
      # It is also possible to configure the loglevel for particular
      # modules, e.g.
      #LogLevel info ssl:warn

      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined

      # For most configuration files from conf-available/, which are
      # enabled or disabled at a global level, it is possible to
      # include a line for only one particular virtual host. For example the
      # following line enables the CGI configuration for this host only
      # after it has been globally disabled with "a2disconf".
      #Include conf-available/serve-cgi-bin.conf
      </VirtualHost>

      Obs: ao finalizar a edição do arquivo reinicie o servico apache - service apache2 restart

      Resumindo: Agora para acessar meu Zabbix somente digito no browserwww.nomedosite.com.br sem a necessidade do /zabbix no final do endereço.

      Obrigado Galera - fica a dica!!

      Comment

      Working...