Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using google minify and my URLs for including CSS and JS are something like

I have moved to nginx with php-fpm and got the config as

 location ~ \.php {
                if (!-f $request_filename) {
                        return 404;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /var/www/$fastcgi_script_name;
                include fastcgi_params;

The minification is not working and the URLs are returning 404s. Can someone guide me as to what I can do to fix the same

share|improve this question

You are using path info and as such you cannot check if the file exists because you rely on PHP to traverse the URI it's given until it finds an existing file.

Please see this wiki page on how to handle it properly:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.