Ubuntu 14.04
Apache/2.4.12
PHP 5.5.23-1+deb.sury.org~trusty+2
I am having an issue with assets that contain a space (urlencoded to %20) in the file name, for example:
When requesting this I get a "Sorry, the requested file could not be found" error however by disabling slash arguments in moodle (and not changing server config at all) the images are displayed. This only seems to effect images with a space in their file name and I am not having trouble getting assets and things with or without slash arguments enabled.
I am testing upgrading from CGI PHP to FPM and this is a sticking point so far. I have the following settings changed from default in PHP:
error_log syslogmemory_limit 2048M
cgi.fix_pathinfo 1
upload_max_filesize 2000M
post_max_size 2000M
max_execution_time 480
realpath_cache_size 1M
realpath_cache_ttl 300
opcache.enable 1
opcache.memory_consumption 2048M
opcache.interned_strings_buffer 16
opcache.max_accelerated_files 8000
opcache.use_cwd 1
opcache.validate_timestamps 1
opcache.revalidate_freq 60
opcache.save_comments 1
opcache.enable_file_override 0
This is the ProxyPass line I am using:
ProxyPassMatch "^/(.*\.php(/.*)?)$" "fcgi://127.0.0.1:9000:/var/www/$1" enablereuse=on nocanon
I am not sure what is breaking it, it doesn't seem to be permissions or PHP/Apache config since slash everything works without slash arguments configured. Any thoughts would be helpful!