Apache HTTP with Tomcat | Apache HTTP SSL#

Install Apache HTTP Server#

For Debian use package apache2, see https://help.ubuntu.com/lts/serverguide/httpd.html

sudo apt-get install apache2 

Install Log#

	Holen:1 http://security.debian.org/debian-security stretch/updates/main amd64 apache2-bin amd64 2.4.25-3+deb9u4 [1.183 kB]
	Holen:2 http://ftp.de.debian.org/debian stretch/main amd64 libapr1 amd64 1.5.2-5 [96,6 kB]
	Holen:3 http://security.debian.org/debian-security stretch/updates/main amd64 apache2-utils amd64 2.4.25-3+deb9u4 [217 kB]
	Holen:4 http://ftp.de.debian.org/debian stretch/main amd64 libaprutil1 amd64 1.5.4-3 [85,8 kB]
	Holen:5 http://ftp.de.debian.org/debian stretch/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-3 [19,3 kB]
	Holen:6 http://ftp.de.debian.org/debian stretch/main amd64 libaprutil1-ldap amd64 1.5.4-3 [17,4 kB]
	Holen:7 http://security.debian.org/debian-security stretch/updates/main amd64 apache2-data all 2.4.25-3+deb9u4 [162 kB]
	Holen:8 http://security.debian.org/debian-security stretch/updates/main amd64 apache2 amd64 2.4.25-3+deb9u4 [236 kB]
	Holen:9 http://ftp.de.debian.org/debian stretch/main amd64 liblua5.2-0 amd64 5.2.4-1.1+b2 [110 kB]
	Holen:10 http://ftp.de.debian.org/debian stretch/main amd64 ssl-cert all 1.0.39 [20,8 kB]
	Vormals nicht ausgewähltes Paket libapr1:amd64 wird gewählt.
	libapr1:amd64 (1.5.2-5) wird eingerichtet ...
	apache2-data (2.4.25-3+deb9u4) wird eingerichtet ...
	ssl-cert (1.0.39) wird eingerichtet ...
	Trigger für libc-bin (2.24-11+deb9u3) werden verarbeitet ...
	libaprutil1:amd64 (1.5.4-3) wird eingerichtet ...
	Trigger für systemd (232-25+deb9u2) werden verarbeitet ...
	Trigger für man-db ( werden verarbeitet ...
	liblua5.2-0:amd64 (5.2.4-1.1+b2) wird eingerichtet ...
	libaprutil1-ldap:amd64 (1.5.4-3) wird eingerichtet ...
	libaprutil1-dbd-sqlite3:amd64 (1.5.4-3) wird eingerichtet ...
	apache2-utils (2.4.25-3+deb9u4) wird eingerichtet ...
	apache2-bin (2.4.25-3+deb9u4) wird eingerichtet ...
	apache2 (2.4.25-3+deb9u4) wird eingerichtet ...
	Enabling module mpm_event.
	Enabling module authz_core.
	Enabling module authz_host.
	Enabling module authn_core.
	Enabling module auth_basic.
	Enabling module access_compat.
	Enabling module authn_file.
	Enabling module authz_user.
	Enabling module alias.
	Enabling module dir.
	Enabling module autoindex.
	Enabling module env.
	Enabling module mime.
	Enabling module negotiation.
	Enabling module setenvif.
	Enabling module filter.
	Enabling module deflate.
	Enabling module status.
	Enabling module reqtimeout.
	Enabling conf charset.
	Enabling conf localized-error-pages.
	Enabling conf other-vhosts-access-log.
	Enabling conf security.
	Enabling conf serve-cgi-bin.
	Enabling site 000-default.
	Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
	Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
	Job for apache2.service failed because the control process exited with error code.
	See "systemctl status apache2.service" and "journalctl -xe" for details.


see /usr/share/doc/apache2/README.Debian.gz]
use "manual" on "apache2-doc" package


Note: do not use /usr/sbin/apache2 directly
/etc/init.d/apache2 start
/etc/init.d/apache2 stop
/etc/init.d/apache2 restart
/usr/sbin/apachectl start
/usr/sbin/apachectl stop	


/usr/share/ - apache2 program
/var/www/html/ - default public content, all files & subfolders accessible by default
/var/www/html/index.html - Access Websites	
/etc/apache2/ - configuration
/var/log/apache2/ - logs


Main conf file is /etc/apache2/apache2.conf
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Folder /etc/apache2/conf-available/

Activate/Deactivate conf with

a2enmod, a2dismod, a2ensite, a2dissite, a2enconf, a2disconf	
More config


Enable SSL

a2enmod ssl
List enabled mods
apache2ctl -M | sort


Stored at /var/log/apache2/* You can use
journalctl -xe

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-) was last changed on 13-Jun-2019 18:14 by Administrator