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 have been having several issues with certain PHP apps lately on my Fedora nginx + php-fpm setup. I originally had this issue with Owncloud, and created a question, without much luck, but I am realizing it is a global problem.

I tried installing Drupal today and am having the same problem I had earlier. My nginx server block is as such:

 server {
            listen 80;
            root /var/www/whatever;
            index index.php;

            location / {
                    try_files $uri $uri/ =404;
                    #Recommended by Drupal docs for "Clean URLs"
                    error_page 404 = @drupal;

            location ~ \.php$ {
                    include fastcgi_params;
                    fastcgi_index index.php;
                    try_files $uri =404;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

            #Recommended by Drupal docs for "Clean URLs"
            location @drupal {
                    rewrite ^(.*)$ /index.php?q=$1 last;

This block works just fine for my Tiny Tiny RSS setup, but when I use it for Owncloud or Drupal, all assets fail to load because the URL's generated by php are instead of

I would imagine that the issue relates to the default configuration of PHP in Fedora, but otherwise I haven't a clue what could be wrong.

share|improve this question
Did you make some other changes to your PHP configuration? Specifically check the value of cgi.fix_pathinfo. – Michael Hampton Jan 11 '14 at 2:34
It is commented out in my php.ini: ;cgi.fix_pathinfo=1. I did not edit the default php.ini. – MetaNova Jan 11 '14 at 2:36

Your Answer


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

Browse other questions tagged or ask your own question.