<font color="#333399"><font>Hi,<br><br>I'm using Nginx linked to PHP using fastcgi proxy (to the FPM module of PHP core btw).<br><br>I am trying to use some rewrite rules, which apparently work since I get redirected (HTTP answer 200), but the content is not passed through the PHP handler...<br>
I am returned the file for downloading which content is the raw PHP code!<br><br>I am using a configuration like the following:<br><br>location / {<br> rewrite ^/dunno/([^\.^/]+)$ /index.php?q=$1 break;<br> return 404;<br>
}<br><br>location ~ \.php$ {<br> // PHP handling there<br>}<br><br>What am I doing wrong?</font></font><br clear="all"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><br>