For openSUSE Leap 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/openSUSE_Leap_15.6/Apache.repo
zypper refresh
zypper install apache2
For openSUSE Leap 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/openSUSE_Leap_15.5/Apache.repo
zypper refresh
zypper install apache2
For SLE 15 SP6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/SLE_15_SP6/Apache.repo
zypper refresh
zypper install apache2
For SLE 15 SP5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/SLE_15_SP5/Apache.repo
zypper refresh
zypper install apache2
For SLE 15 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/SLE_15_SP4/Apache.repo
zypper refresh
zypper install apache2
For SLE 15 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/SLE_15_SP3/Apache.repo
zypper refresh
zypper install apache2
For SLE 15 SP2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/SLE_15_SP2/Apache.repo
zypper refresh
zypper install apache2
For SLE 15 SP1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Apache/SLE_15_SP1/Apache.repo
zypper refresh
zypper install apache2