Hello,<br>
<br>
I am using google minify(<a href="http://code.google.com/p/minify/">http://code.google.com/p/minify/</a>) to minify js and css files. I am migrating from apache to nginx. After migration my js and css<br>
urls(e.g: <a href="http://mydomain.com/min/?g=group_name" target="_blank">http://mydomain.com/min/?g=group_name</a>) which
use minify have<br>
stopped working. Nginx returns 'HTTP/1.0 400 Bad Request' on all the<br>
urls using minfy.<br>
<br>
When I visit the address <a href="http://mydomain.com/min" target="_blank">http://mydomain.com/min</a>, it does redirects to<br>
<a href="http://mydomain.com/min/builder/" target="_blank">http://mydomain.com/min/builder/</a>
like it used to do with apache, but<br>
instead of showing complete 'Minify URI Builder' page it only shows<br>
following:<br>
------------------------------<div id=":74">----------------------------------------------------------<br>
Minify URI Builder<br>
<br>
Need help? Search or post to the Minify discussion list.<br>
<br>
This app is minified :) view source<br>
-----------------------------------------------------------------------------------------<br>
<br>
In firebug I can see that the request <a href="http://example.com/min/?f=min/builder/_index.js" target="_blank">http://example.com/min/?f=min/builder/_index.js</a><br>
also returns 'HTTP/1.0 400 Bad Request' when i try to access<br>
<a href="http://mydomain.com/min" target="_blank">http://mydomain.com/min</a>.<br>
<br>
My server configuration for nginx is as following:<br>
-------------------------------------------------------------------------------------------<br>
server {<br>
listen 80;<br>
server_name <a href="http://example.com/" target="_blank">example.com</a>;<br>
<br>
location / {<br>
root /path/to/root/dir;<br>
index index.php index.html index.htm;<br>
}<br>
<br>
<br>
# redirect server error pages to the static page /50x.html<br>
#<br>
error_page 500 502 503 504 /50x.html;<br>
location = /50x.html {<br>
root html;<br>
}<br>
<br>
<br>
location ~ \.php$ {<br>
fastcgi_pass <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index index.php;<br>
fastcgi_param SCRIPT_FILENAME /path/to/root/dir/<br>
$fastcgi_script_name;<br>
include fastcgi_params;<br>
fastcgi_param QUERY_STRING $query_string;<br>
fastcgi_param REQUEST_METHOD $request_method;<br>
fastcgi_param CONTENT_TYPE $content_type;<br>
fastcgi_param CONTENT_LENGTH $content_length;<br>
}<br>
<br>
}<br>
-------------------------------------------------------------------------------------------<br>
<br>
Please help me in configuring google minify with nginx.<br>
<br>
Thanks,<br>
<font color="#888888">ZM.</font></div>