привет. хочу добавить сайт на сервер. вот что сделал:
доьавил сервер на default.conf
server {
listen 80;
server_name saygac.net;
server_tokens off;
charset utf-8;
access_log /var/log/nginx/saygac.net.log;
rewrite ^/([0-9]+).js /js.php?id=$1;
location / {
root /home/saygac.net;
index index.php;
}
error_page 404 /index.php;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /home/saygac.net;
}
location ~ \.php$ {
root /home/saygac.net;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
запись на файл etc/hosts
5.39.89.7 saygac.netне могу понять почему не работает. сайт вообще не пингуется.
http://who.is/whois/saygac.net ns адреса пингуются.
кто знает в чем проблема? спс заранее.