Problem
The 403 – Forbidden Access is denied error appears when you try to access the APTARE IT Analytics portal.
Error Message
403 – Forbidden Access is denied
Cause
Apache blocks access to the APTARE IT Analytical portal when /opt/aptare is a symbolic link to a directory.
Solution
Symbolic link is a term for any file that contains a reference to another file or location. According to the Apache security guidelines, Apache configuration blocks all the symbolic links to avoid risks.
If you must use a symbolic link due to insufficient partition or space, perform the following the steps:
For Linux
- Add the following text in the /opt/apache/conf/httpd-override.conf file:
<DirectoryMatch "./WEB-INF.">
Options FollowSymLinks
AllowOverride None
Require all denied
</DirectoryMatch>
<Directory / >
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /opt/aptare/datarcvr>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /opt/aptare/portal>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory "/opt/apache/htdocs">
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
- Restart the Apache services.
For Windows
- Add the following text in the C:\opt\apache\conf\httpd-override.conf file:
<DirectoryMatch "./WEB-INF.">
Options FollowSymLinks
AllowOverride None
Require all denied
</DirectoryMatch>
<Directory / >
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory "C:/opt/aptare/datarcvr">
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory "C:/opt/aptare/portal">
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory "C:/opt/apache/htdocs">
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
- Restart the Apache services.