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 this configuration and Nginx only returns 410 gone, any idea on how can I fix this?

server {
    listen   80;

    set $rootfolder /home/sites/;

    access_log /home/sites/;
    error_log /home/sites/;

    gzip on;
    gzip_http_version 1.1;
    gzip_vary on;
    gzip_comp_level 6;
    gzip_proxied any;
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    gzip_buffers 16 8k;

    gzip_disable “MSIE [1-6].(?!.*SV1)”;

    location /favicon.ico
        alias $rootfolder/images/favicon.ico;
        expires max;

    location /
        add_header Access-Control-Allow-Origin *;
        root $rootfolder;

I've checked the logs but there's nothing in it.


share|improve this question
I think you're omitting some conf info. I very much so doubt that nginx would return 410 Gone all by itself, without any explicit configuration instruction anywhere to do so. – cnst Mar 20 '13 at 18:00

That was a really stupid mistake. is a parallels machine but it wasn't mapped correctly inside the /etc/hosts file...

I just had to add the line and the problem did solve correctly.

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.