September 27, 2010 07:50AM

I am using google minify( to minify js and
css files. I am migrating from apache to nginx. After migration my js and
urls(e.g: which use minify have
stopped working. Nginx returns 'HTTP/1.0 400 Bad Request' on all the
urls using minfy.

When I visit the address, it does redirects to like it used to do with apache, but
instead of showing complete 'Minify URI Builder' page it only shows
Minify URI Builder

Need help? Search or post to the Minify discussion list.

This app is minified :) view source

In firebug I can see that the request
also returns 'HTTP/1.0 400 Bad Request' when i try to access

My server configuration for nginx is as following:
server {
listen 80;

location / {
root /path/to/root/dir;
index index.php index.html index.htm;

# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;

location ~ \.php$ {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/root/dir/
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;


Please help me in configuring google minify with nginx.

nginx mailing list
Subject Author Posted

Migrating from Apache to NGINX, google minify stopped working.

zeeshan.m.malik September 27, 2010 07:50AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready