dc9fbb8810
add default vhost configs OBS-URL: https://build.opensuse.org/request/show/102748 OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=355
28 lines
895 B
Plaintext
28 lines
895 B
Plaintext
# provided by ChrisWi aka chris@computersalat.de
|
|
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 :)
|
|
|