1
0
Fork 0
apache2/debian
Daniel Baumann 6e66ceb187
Releasing progress-linux version 2.4.63-1progress8u1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-26 07:47:29 +02:00
..
bash_completion Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
config-dir Enabling dehydrated ssl certificates. 2025-06-26 07:47:20 +02:00
debhelper Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
icons Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
patches Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
perl-framework Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
source Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
suexec-config-dir Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
tests Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
upstream Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
a2enmod Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
a2query.in Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.bug-control Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.bug-script Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.dirs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.lintian-overrides Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-bin.manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-data.dirs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-data.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-data.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-data.links Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-data.lintian-overrides Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-dev.dirs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-dev.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-dev.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-dev.links Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-dev.manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.conf Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.dirs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.doc-base Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.examples Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.lintian-overrides Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.NEWS Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-doc.postrm Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-ssl-dev.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec-custom.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec-custom.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec-custom.manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec-pristine.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec-pristine.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec-pristine.manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec.postinst.in Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-suexec.prerm.in Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-utils.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-utils.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-utils.manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2-utils.ufw.profile Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.apache-htcacheclean.default Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.apache-htcacheclean.init Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.apache-htcacheclean.service Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.apache-htcacheclean@.service Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.cron.daily Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.dirs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.examples Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.init Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.install Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.links Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.lintian-overrides Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.logrotate Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.manpages Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.monit Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.NEWS Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.postinst Enabling default-ssl site by default. 2025-06-26 07:47:19 +02:00
apache2.postrm Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.preinst.in Renaming default-ssl.conf site to 000-default-ssl.conf. 2025-06-26 07:47:18 +02:00
apache2.prerm Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
apache2.README.Debian Renaming default-ssl.conf site to 000-default-ssl.conf. 2025-06-26 07:47:18 +02:00
apache2.service Setting Restart to always in systemd unit. 2025-06-26 07:47:12 +02:00
apache2@.service Setting Restart to always in systemd unit. 2025-06-26 07:47:12 +02:00
apache2ctl Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
ask-for-passphrase Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
changelog Releasing progress-linux version 2.4.63-1progress8u1. 2025-06-26 07:47:29 +02:00
clean Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
clean_config_vars Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
control Depending on ssl-cert or dehydrated. 2025-06-26 07:47:19 +02:00
convert_docs Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
copyright Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
create_preinst Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
gbp.conf Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
index.html Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
NEWS Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
PACKAGING Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
README.backtrace Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
README.multiple-instances Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
rules Renaming default-ssl.conf site to 000-default-ssl.conf. 2025-06-26 07:47:18 +02:00
salsa-ci.yml Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
secondary-init-script Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
setup-instance Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
SupportApache-small.png Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00
watch Adding debian version 2.4.63-1. 2025-06-22 11:01:27 +02:00

Setup
=====

The scripts apache2ctl, a2enmod, a2ensite, ... and the init script have some
support for handling multiple instances of apache2 running on the same machine.

The basic idea is to copy /etc/apache2 to /etc/apache2-xxx. An example script
that demonstrates what else needs to be done can be found in
/usr/share/doc/apache2/examples/setup-instance. Use with:

	sh /usr/share/doc/apache2/examples/setup-instance xxx

Adjust the configuration in /etc/apache2-xxx, especially the listen ports in
ports.conf and in the virtual host directives in
/etc/apache2-xxx/sites-enabled/*.

You can then use a2enmod-xxx, apache2ctl-xxx, ... as usual, and they
will affect the new instance of apache2.

If you use systemd, the service name of your new instance is
"apache2@xxx.service". Otherwise the script installed an init script
named /etc/init.d/apache2-xxx.

To start the new apache2 instance on boot, use
- if you use systemd, run:
	systemctl enable apache2@xxx
- if you use sysv-init with dependency based boot sequence (the default):
  If you don't have ssl keys with passphrases, you may want to set
  'X-Interactive: false' in /etc/init.d/apache2-xxx to reduce boot time.
  Then execute:
	insserv apache2-xxx
- otherwise:
	ln -s ../init.d/apache2-xxx /etc/rc2.d/S80apache2-xxx

To make 'apache2ctl-xxx status' work, you need to set APACHE_STATUSURL in
/etc/apache2-xxx/envvars.


Upgrades
========

Since only the configuration files in /etc/apache2 are in the package, the
configuration of other instances won't change if the default configuration
changes.  Possibly ways to deal with this are:

- Use symlinks to the files in /etc/apache2 where possible instead of copying
  the files.
- Don't modify /etc/apache2 at all but use it to track the default
  configuration. You can then merge the changes into the /etc/apache2-xxx dirs.
  It may be a good idea to use a version control system for /etc/apache2 to
  keep track of the changes. See the package etckeeper for keeping the whole
  /etc dir under version control.
  An advanced scheme may be for every /etc/apache2* dir to be a separate git
  repository so that you can easily pull/push changes from one dir to another.
 

Package removal
===============

The Apache 2 package will only remove the default configuration files and
directories.


htcacheclean service
====================

The apache-htcacheclean service can be handled in the same way as the
main apache2 script. You can create an
'apache-htcacheclean@instance.service' service under systemd or you can
copy /etc/init.d/apache-htcacheclean as
/etc/init.d/apache-htcacheclean-xxx under SystemV.

The parameters of the service can be customized with
/etc/default/apache-htcacheclean-xxx (that is created by the
setup-instance helper script).


Environment variables
=====================

The following environment variables can be used to influence many scripts.  The
default apache2 configuration will make use of them, too. Most can be set in
/etc/apache2-xxx/envvars. Variables set in /etc/apache2-xxx/envvars must be
exported.

variable		default value
--------		-------------
APACHE_CONFDIR		/etc/apache2         or /etc/apache2-xxx
APACHE_ENVVARS		$APACHE_CONFDIR/envvars
APACHE_HTTPD		/usr/sbin/apache2
APACHE_ARGUMENTS	empty if $APACHE_CONFDIR = /etc/apache2
			"-d $APACHE_CONFDIR" otherwise

APACHE_RUN_USER		www-data
APACHE_RUN_GROUP	www-data

APACHE_PID_FILE         /var/run/apache2/apache2.pid or /var/run/apache2-xxx/apache2.pid
APACHE_RUN_DIR		/var/run/apache2     or /var/run/apache2-xxx
APACHE_LOCK_DIR		/var/lock/apache2    or /var/lock/apache2-xxx
APACHE_LOG_DIR		/var/log/apache2     or /var/log/apache2-xxx

APACHE_MODS_AVAILABLE	$APACHE_CONFDIR/mods-available
APACHE_MODS_ENABLED	$APACHE_CONFDIR/mods-enabled
APACHE_SITES_AVAILABLE	$APACHE_CONFDIR/sites-available
APACHE_SITES_ENABLED	$APACHE_CONFDIR/sites-enabled

APACHE_LYNX		www-browser -dump
APACHE_STATUSURL	http://localhost:80/server-status