webp-express
webp-express copied to clipboard
Path is outside resolved document root when using Apache Alias directive.
Problem:
My httpd configuration uses the Alias /blog /opt/homebrew/var/httpd/wordpress
directive so I don't break the permissions of the blog. But this causes the plugin to think the path is outside document root.
Relevant part of httpd.conf:
# WordPress
Alias /blog /opt/homebrew/var/httpd/wordpress
<Directory /opt/homebrew/var/httpd/wordpress/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>