'Slash arguments' problem

Re: 'Slash arguments' problem

by Alex Walker -
Number of replies: 1

With slash arguments, the web service redirects something.php/address/of/file to something.php?file=/address/of/file. Apache with mod_php handles this automatically. NGINX doesn't. You need a rewrite rule to redirect these requests. Don't put it in the 'location' block - put it above (outside) it.

rewrite ^/(.*\.php)(/)(.*) /$1?file=/$3
Average of ratings:Useful (1)
In reply to Alex Walker

Re: 'Slash arguments' problem

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Alex,
your rewrite rule just works but I strongly suggest people to use a better Nginx configuration to (re)create the correct PATH_INFO support, required by Moodle.

HTH,
Matteo

Average of ratings:Useful (1)