apache-config-devel/apache.conf
Sven Velt 92eda1e5ba Now with a little bit of SSL and Let's Encrypt
- apache.conf
  Include listen.conf AFTER loading modules (ssl)

- mod_ssl
  needs socache_shmcb
  uses mime and setenvif (in vhost)

- mod_alias (for LE/dehydrated)

- sites-available/00[12]-default-ssl.conf (untested!)
2016-10-06 22:43:30 +02:00

61 lines
1.1 KiB
ApacheConf

### Basic server config
ServerRoot "/etc/apache"
ServerAdmin you@example.com
#ServerName 127.0.0.1:80
# needs "mod_unixd"
User _apache
Group _apache
### Error logging of master process
# Possible values include: debug, info, notice, warn, error, crit,
LogLevel warn
ErrorLog "/var/log/httpd/error_log"
### Load modules
# Load MPM
Include mpm-enabled/*.load
Include mpm-enabled/*.conf
# We can't run without these:
LoadModule authz_core_module /usr/libexec/httpd/mod_authz_core.so
LoadModule log_config_module /usr/libexec/httpd/mod_log_config.so
LoadModule unixd_module /usr/libexec/httpd/mod_unixd.so
# Admin wants these modules:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# Include listen ports
Include listen.conf
### Basic security settings
<Directory />
AllowOverride none
Require all denied
</Directory>
<Files ".ht*">
Require all denied
</Files>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<IfModule log_config_module>
CustomLog "/var/log/httpd/access_log" combined
</IfModule>
### Include additional configs
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf