-1

I have tried everything here and elsewhere but nothing seems to fix this issue of the alias folder giving a 403 error when trying to access it through a URL. Files are accessible through a full path (such as for includes) but not via URL. It was working fine before PHP8 but I suspect that something else was updated too (likely Apache2) that broke it. Anything else NOT already posted to try? I am running Apache 2.4.48 on Ubuntu 21.10.

The directives are fairly basic:

DocumentRoot /var/www/html/domainname.loc
ServerName domainname.loc

<Directory "/var/www/html/domainname.loc">
    Require all granted
    Options Indexes FollowSymLinks
</Directory>

Alias /common /domainname.loc/common
DonP
  • 725
  • 1
  • 8
  • 27

1 Answers1

0

put alias direcitve before directory block

Marek Lisiecki
  • 498
  • 6
  • 10
  • Interesting as Webmin also puts it after. Anyway, it seems to make no difference where it is as the error is 403 Forbidden, not 404 File Not Found. – DonP Jun 27 '22 at 22:21