webp-express icon indicating copy to clipboard operation
webp-express copied to clipboard

Path is outside resolved document root when using Apache Alias directive.

Open annpocoyo opened this issue 1 year ago • 1 comments

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>

annpocoyo avatar May 13 '23 07:05 annpocoyo