Sign up ×
Server Fault is a question and answer site for 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.



Redirecting to default Nginx page


Here is my configuration. What am I missing here?

server {
        listen   80;

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


        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
        location ~ \.php$ {
                try_files $uri =404;
                # 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
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

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.