I've setup an Apache alias on a subdomain, which points to a directory outside the document root like this:
Alias / /home/keyhelp/www/webmail/plugins/xcalendar/caldav/
<Directory "/home/keyhelp/www/webmail/plugins/xcalendar/caldav">
Require all granted
AllowOverride All
</Directory>
This works as expected with a index.html file but not with index.php even if there is a .htaccess in the directory leading all requests to index.php.
In the Apache error log I get:
[Thu Mar 31 08:50:08.574396 2022] [proxy_fcgi:error] [pid 376501:tid 140039026099968] [client XX.XX.XXX.XXX:58410] AH01071: Got error 'Primary script unknown'
System: Debian 11.3, Apache 2.4.53, PHP 7.4.28
Thanks!