Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just finished installing Nginx for wordpress but all static files with ?ver=x is redirecting to nginx's default page.

Working

/jquery-ui-1.8.6.custom.min.js

Redirecting to default Nginx page

/jquery-ui-1.8.6.custom.min.js?ver=1

Here is my configuration. What am I missing here?

server {
        listen   80;

        root /var/www/domain.com;
        index index.php index.html index.htm;

        server_name domain.com;

        location / {
                try_files $uri $uri/ /index.php?q=$uri&$args;
        }

        error_page 404 /404.html;

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
              root /usr/share/nginx/www;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        location ~ \.php$ {
                try_files $uri =404;
                #fastcgi_pass 127.0.0.1:9000;
                # With php5-fpm:
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
         }        
}

Thanks everyone in advance.

share|improve this question
1  
You should clear your browser cache. –  VBart Nov 4 '13 at 16:20
    
Awesome. It's just that simple. –  Devyn Nov 6 '13 at 15:35
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.