# for a discussion of each configuration directive.
ServerRoot "/etc/httpd"
-DefaultType text/plain
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
-# as error documents. e.g. admin@your-domain.com
+# as error documents. e.g. admin@example.com
#
ServerAdmin root@example.com
KeepAliveTimeout 5
UseCanonicalName Off
AccessFileName .htaccess
-ServerTokens Full
+ServerTokens Prod
ServerSignature On
HostnameLookups Off
+#AddDefaultCharset UTF-8
TraceEnable Off
# Include other modules and packages config.
-Include conf.d/*.conf
+IncludeOptional conf.d/*.conf
# Include webapps config
-Include webapps.d/*.conf
+IncludeOptional webapps.d/*.conf
<IfModule alias_module>
# ScriptAlias: This controls which directories contain server scripts.
AllowOverride None
Options None
<IfModule mod_authz_host.c>
- Order allow,deny
- Allow from all
+ Require all granted
</IfModule>
</Directory>
</IfModule>
# Any apache.conf conf directive may go into a VirtualHost command.
# See also the BindAddress entry.
-#<VirtualHost 1.2.3.4>
-#ServerAdmin webmaster@host.example.com
-#DocumentRoot /www/docs/host.examp-le.com
-#ServerName host.exampl.com
-#ErrorLog logs/host.example.com-error_log
-#TransferLog logs/host.example.com-access_log
-#</VirtualHost>
+# Setup default vhost (first one defined in config) and include vhosts configuration
+<VirtualHost *:80>
+ ServerName localhost
+# ServerAdmin webmaster@host.example.com
+# DocumentRoot /www/docs/host.example.com
+# ErrorLog logs/host.example.com-error_log
+# TransferLog logs/host.example.com-access_log
+</VirtualHost>
+
+IncludeOptional vhosts.d/*.conf