1
Мой сайт отвечает мне Страница, которую вы ищете временно недоступна. Повторите попытку позже.nginx - страница, которую вы ищете временно недоступна
Любые идеи, что я сделал не так? Спасибо.
Эта конфигурация работает на другом сайте, но не на этом. Я не знаю почему.
server {
listen 80; ## listen for ipv4; this line is default and implied
root /var/www/vhosts/site.com;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name server.com;
error_log /var/log/nginx/err.com.error.log;
## Compression
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 4;
gzip_http_version 1.0;
gzip_min_length 1280;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript im$
gzip_vary on;
add_header Access-Control-Allow-Origin *;
location/{
# if you're just using wordpress and don't want extra rewrites
# then replace the word @rewrites with /index.php
# try_files $uri $uri/ @rewrites;
try_files $uri $uri/ /index.php?$args;
}
# Allow access to root index.php
# location ~ ^/index\.php {
location ~ \.php {
include fastcgi_params;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html|pdf|xlsx|xls|docx|doc|zip|rar)$ {
access_log off;
expires max;
}
#
# 404 error page
#
error_page 404 /404.html;
#
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}
location ~ /\.ht {
deny all;
}
}
Общедоступный доступ и журнал ошибок прежде всего пожалуйста. – Anatoly
Извините за беспокойство, я только что решил. Uncommented fastcgi_split и fastcgi_param, поэтому он теперь решен. – Delirium