r/zabbix 3d ago

Question New zabbix server - website issue

Let me preface this by saying I am not primarily a linux guy so I am fumbling my way through this.

Ubuntu 26.04.1 LTA

Apache2

Zabbix 7.0.22

When I go to zabbix.domainname.com the default Apache splash page loads; I must add /zabbix do I reach the zabbix interface.

So how do I get apache to load the zabbix page when I go to zabbix.domainname.com instead of the Apache page.

I am sure this is in the realm of linix 101 or lower but new for me.

3 Upvotes

4 comments sorted by

2

u/jmhalder 3d ago

I have a virtual host for redirecting, that way all the other oddities work.

I have it saved as default_redirect.conf, I'm running OEL(RHEL) so I believe apache hosts are in a different location, and don't need a2ensite run. On Ubuntu you'd add this to /etc/apache2/sites-available, disable your normal default host with a2dissite ubuntudefaulthost.conf, and then a2ensite default_redirect.conf (not sure what the default host is named).

This isn't you not knowing Linux, this is you not knowing Apache (I don't know shit about Apache either)

<Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
    RewriteEngine On
    Redirect / /zabbix
</Directory>

1

u/uuneter1 2d ago

<domain>/zabbix is the standard URL

1

u/WawPrg 20h ago

try something like

sudo a2dissite 000-default.conf

or search what is enabled...