Ad Widget

Collapse

Change the apache path to /zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nabberuk
    Member
    • May 2010
    • 82

    #1

    Change the apache path to /zabbix

    Hi,

    I've just installed zabbix and all is running nicely, but i have to access it via http://ipaddress/zabbix. Is it possible to change the apache config to http://ipaddress instead?

    thanks
  • nabberuk
    Member
    • May 2010
    • 82

    #2
    Found it, for those others trying the same thing here's what i did.

    edited both;

    /etc/apache2/sites-available\default
    /etc/apache2/sites-available\default-ssl

    Changed from /var/www to /usr/share/zabbix

    restarted apache2.

    Comment

    • Zev
      Junior Member
      • Aug 2012
      • 13

      #3
      Hi.

      You can use a apache virt host.

      Use "nano /etc/httpd/conf/httpd.conf"

      Add tis to config file:

      NameVirtualHost *:80
      <VirtualHost *:80>
      DocumentRoot /var/www/html/zabbix
      ServerName www.name.com
      </VirtualHost>

      Restart apache "service httpd restart"

      and try http://x.x.x.x:80

      Comment

      • mgabriel1
        Junior Member
        • Feb 2019
        • 1

        #4
        Hello all,

        I am a baby SysAdmin learning Zabbix for the first time and I'm also running into this issue. I'm using Ubuntu 18.04 to host. There are already lines for a virtual host included in the apache2 000-default.conf file but when I edit the document root from /var/www/html to /var/www/html/ipaddress and restart apache the url redirects to apache's main page. Clearly it's pointing to something else that I'm not seeing and any help anyone could offer would be greatly appreciated.

        Thank you

        mgabriel

        Comment

        • Sarsa
          Junior Member
          • Mar 2019
          • 1

          #5
          In Centos 7, this what I did to have Zabbix frontend accessible from the main url.

          Commented the Alias line and added the VirtualHost block.

          /etc/httpd/conf.d/zabbix.conf

          Code:
           
           # # Zabbix monitoring system php web frontend #  #Alias /zabbix /usr/share/zabbix  <VirtualHost *:80>     DocumentRoot /usr/share/zabbix     ServerName zabbix.mydomain.com </VirtualHost>  <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 max_input_vars 10000         php_value always_populate_raw_post_data -1         php_value date.timezone Asia/Seoul     </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>

          Comment

          • pereyrdi
            Junior Member
            • Sep 2023
            • 2

            #6
            Hello, I have a similar problem, using docker Container "zabbix-zabbix-web-apache-mysql-1" . I get a 404 opening the website "server/zabbix", for example "server/blutheme.css" 404, should be "http://server/zabbix/blutheme.css"
            where i must configure the base path ?
            the local nginx setting is
            ProxyPass /zabbix http://127.0.0.1:8016/
            ProxyPassReverse /zabbix http://127.0.0.1:8016/

            And the docker-compose
            zabbix-web-apache-mysql:
            restart: always
            image: zabbix/zabbix-web-apache-mysql:alpine-5.4-latest
            ports:
            - "8016:8080"

            thanks, diego

            Comment

            Working...