File apache2-README.default-vhost of Package apache2.2876

# provided by ChrisWi aka
This is a short introduction about how to use the delivered
 - default-vhost.conf
 - default-vhost-ssl.conf
configuration files.

When using virtual hosts (vhosts) with apache, you want to have a
"default" config which points to your default hostname (FQDN).
And when apache is reading its configs, then our "default" configs
should be read "at first".
To achieve this, you should adapt the/those config files and then
add them to the /etc/sysconfig/apache2 config like the
following example:

# /etc/sysconfig/apache2
---- snip ----
# This allows you to add e.g. VirtualHost statements without touching 
# /etc/apache2/httpd.conf itself, which makes upgrading easier. 
APACHE_CONF_INCLUDE_FILES="default-vhost.conf default-vhost-ssl.conf"

---- snip ----

This way our "default" config are read in before conf.d/* and vhosts.d/*

Have fun :)
openSUSE Build Service is sponsored by