Apache web-assets.conf configuration example for CentOS Linux 6

Get the default configuration file web-assets.conf for Apache, optimized for CentOS Linux 6. 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
    
  

Config Details

Location
/etc/httpd/conf.d/web-assets.conf
Operating system
CentOS Linux 6
Length
46 lines
MD5 checksum
7264252023d2874fc9246854f3c42009

Usage

Download the raw file with wget or curl

Wget

wget -O web-assets.conf.example https://exampleconfig.com/static/raw/apache/centos6/etc/httpd/conf.d/web-assets.conf

cURL

curl https://exampleconfig.com/static/raw/apache/centos6/etc/httpd/conf.d/web-assets.conf > web-assets.conf.example