Suse Apache: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Installation= *zypper install -y apache2 =Verzeichnis erstellen= *mkdir -m 777 /mnt/share =Konfiguration= *cat /etc/smb.conf <pre> [global] workgroup = WO…“) |
|||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Installation= | =Installation= | ||
*zypper install -y apache2 | *zypper install -y apache2 | ||
| − | = | + | =Konfigutration= |
| − | * | + | *vi /etc/apache2/vhosts.d/vhost.conf |
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
| − | + | <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> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | </ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</pre> | </pre> | ||
| − | = | + | =Dienst Aktivieren= |
| − | + | *systemctl enable apache2 --now | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | *systemctl enable | ||
| − | |||
=Checken ob die Dienste laufen= | =Checken ob die Dienste laufen= | ||
| − | *ss -lnutp | grep | + | *ss -lnutp | grep 80 |
| − | + | LISTEN 0 4096 *:80 *:* users:(("httpd-prefork",pid=2443,fd=4) ... | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=Firewall neuladen= | =Firewall neuladen= | ||
*firewall-cmd --zone=public --add-service=samba --permanent | *firewall-cmd --zone=public --add-service=samba --permanent | ||
*firewall-cmd --reload | *firewall-cmd --reload | ||
Aktuelle Version vom 16. November 2022, 17:22 Uhr
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