Apache

apache_logo
Warum Apache? Frei, offen, erprobt, funktioniert.

Hier jetzt eine Schnipselsammlung die bei der Einrichtung brauchbar sein können.


Artikel aus /server/webserver/apache2/*

Apache Installation

apache_logoEigene Website auf dem Server?
Wie? Apache!
Warum? Frei, offen, erprobt, sehr gut dokumentiert!

Ausserdem gibt es viele schöne Module und eine brauchbare Konfiguration ist auch nicht schwierig.

Gibts hier: https://httpd.apache.org/

Virtual Hosts

Um einen neuen Virtuellen Host zu erstellen einfach eine .conf Datei in /etc/apache2/sites-available/ anlegen und vHost eintragen.


<VirtualHost *:80>
  ServerName host.server.tl
  ServerAdmin mail@vom.admin 	
  ServerAlias alias1 alias2	
  ErrorLog /var/log/apache2/host/error.log 
  LogLevel warn			
  CustomLog /var/log/apache2/host/access.log combined 
  ServerSignature Off		
  DocumentRoot /var/www/host/html	
  <Directory /var/www/host/html/> 
    Options Indexes FollowSymLinks  
    AllowOverride None 	
    Order allow,deny	
    allow from all		
 </Directory>
</VirtualHost>

Dann
a2ensite derconfname.conf && service apache2 reload
Fertig. Die Seite ist jetzt unter der eingetragenen Adresse erreichbar.

http Verschlüsseln

apache_sslApache SSL

Wozu? Im Bus laut telefonieren ist unhöflich. Die Verbindung wird mit SSL gut verschlüsselt.
Wie? Zertifikat + apache ssl Modul.

Eine schnelle Einrichtung schafft man in einer Minute.