Suse Apache

Aus xinux.net
Zur Navigation springen Zur Suche springen

Installation

  • zypper install -y apache2

Konfigutration

  • vi /etc/apache2/vhosts.d/vhost.conf
<VirtualHost 172.28.6.100>
    ServerAdmin technik@xinux.de
    DocumentRoot /srv/www/htdocs
    ErrorLog /var/log/apache2/vhost-error_log
    CustomLog /var/log/apache2/vhost-access_log combined
    <Directory "/srv/www/htdocs">
    Options +Indexes
    AllowOverride all
    </Directory>
</VirtualHost>

Dienst Aktivieren

  • systemctl enable apache2 --now

Checken ob die Dienste laufen

  • ss -lnutp | grep 80
LISTEN 0      4096  *:80  *:*   users:(("httpd-prefork",pid=2443,fd=4) ...

Firewall neuladen

  • firewall-cmd --zone=public --add-service=samba --permanent
  • firewall-cmd --reload