The server is built on ngnix. There are sitemap files at the root of the site, but when you try to access the address in the browser to view the map, for example http://site.com/1_index_sitemap.xml, the white page with "File not found."

Error log:

[error] 2215 # 0: * 55416 FastCGI sent in stderr: "Primary script unknown" while reading response message from upstream, client: 195.191.159.197, server: site.com, request: "GET /1_index_sitemap.xml HTTP / 1.1" upstream: "fastcgi: //127.0.0.1: 9000" gsitemap "

Ngnix config:

server { listen 93.170.121.210:80; server_name site.com www.site.com; root /home/admin/web/site.com/public_html; index index.html index.htm index.php; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_buffer_size 256k; fastcgi_buffers 8 256k; include fastcgi_params; } } 

Closed due to the fact that off-topic participants VenZell , aleksandr barakin , zRrr , insolor , Pavel Mayorov 4 May '16 at 8:37 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - VenZell, aleksandr barakin, zRrr, insolor, Pavel Mayorov
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Do not ask questions consisting only of copy-paste errors, add your own explanations. - AivanF.
  • go to the address - for what? - aleksandr barakin
  • Is this your entire config? And does the CNC work? Version of "presta" what? - Andrew Hobbit
  • Version 1.6.1.5 No, this is not the entire configuration file, only a part about fastcgi. as I understood it zakovyrka - Roma Muchka
  • Address to view the site map, for example site.com/1_index_sitemap.xml - Roma Muchka

1 answer 1

on the server there was another config nginx.site.com.conf which partially duplicated the main one. after cleaning up the contents it worked. Thank you all for your attention to my problem.