httpd cannot access the directory aliased with Alias directive

Solution Unverified - Updated -

Issue

  • I configured an alias for http://localhost/repo.
Alias /repo "/repo/"
  • But, I got the following error when I accessed the url.
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /repo/index.html
on this server.</p>
</body></html>
  • SELinux is disabled, and file and directory permission doesn't have any problem.

Environment

Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content