magento apache config

Apache 2.2x & 2.4x – Verifying Versions & Fixing 403s

We have already done with Magento Apache Config for both Apache 2.2x & 2.4x versions. In the final part, we’ll verify our Apache version.

However Enjoy 24x7x365 Tech support and fully Mage optimized websites using our Mage Hosting plans.

Tanzia Farin Chowdhury for Aspiration Hosting !!!

Magento Apache Config – testing version

For confirming our Apache version, use the following command:

apache2 -v

Next we’ll see following output as a result:

Server version: Apache/2.2.22 (Ubuntu)

Server built:   Jul 22 2017 12:45:21

Further if we don’t have Mage Apache installed yet, follow the links to do so.

  1.  Install or Upgrade Mage Apache, guide for Ubuntu users
  2.  Install or Upgrade Mage Apache, guide for CentOS users

Magento Apache Config – Fixing common Errors

Among many other common errors 403s are very regular in both Mage Apache 2.2x and 2.4x versions. Here we’ll  try to draw out the simple solution for both Apache versions if 403s arises.

In case if we find ourselves in such situation where we can’t access to our Mage site and it’s showing a 403 forbidden errors. In such situation, we can simply take following steps to sort it out:

  • First we can simply update our Magento Apache Config.
  • Or using one of the following directives so the clients can have access in our Mage site.

Apache 2.4x – Solving 403s

Here we’ll display an example using a sample among (Require) directives. Here below we can see an example of solving 403 Forbidden errors in Mage Apache 2.4 site. So the visitors can access the Mage site.

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride <value from Apache site>

Order allow,deny

Require all granted

</Directory>

Here make a note: in every scenario the preceding values for Order might not work. All further information are given inside Apache Documentation file.

Apache 2.2x – Solving 403s

Here we’ll display an example using a sample among (Allow) directives. Here below we can see an example of solving 403 Forbidden errors in Mage Apache 2.4 site. So the visitors can access the Mage site.

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride <value from Apache site>

Order allow,deny

Allow from all

</Directory>

Similar make a note: in every scenario the preceding values for Order might not work. All further information are given inside Apache Documentation file.

Now reading Part 03 | Part 01 | Part 02