Get the default configuration file web-assets.conf for Apache, optimized for CentOS Linux 7. This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/httpd/conf.d/web-assets.conf.
For more configurations and setup guides, visit our related files section to further customize your system.
<Directory /usr/share/web-assets>
Options -Indexes +FollowSymLinks
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/javascript>
Options -Indexes +FollowSymLinks
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
<Directory /usr/share/fonts>
Options -Indexes
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
# These aliases are not made available by default on Fedora < 21 and EPEL < 7.
# They will be available by default in Fedora >= 21 and EPEL >= 7.
#Alias /.sysassets/fonts /usr/share/fonts
#Alias /.sysassets/javascript /usr/share/javascript
#Alias /.sysassets/js /usr/share/javascript
#Alias /.sysassets /usr/share/web-assets
Download the raw file with wget or curl
wget -O web-assets.conf.example https://exampleconfig.com/static/raw/apache/centos7/etc/httpd/conf.d/web-assets.conf
curl https://exampleconfig.com/static/raw/apache/centos7/etc/httpd/conf.d/web-assets.conf > web-assets.conf.example
Other config files you might find useful