привет. установил nginx. все ок. но не могу создать вирт.хостинг.
домеин nginxs.tk
добавил запись на hosts
37.143.10.76 nginxs.tk
добавил запись на virtual.conf
server {
listen nginxs.tk:80;
server_name nginxs;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /home/smert;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /home/smert;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /home/smert;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass [url]http://127.0.0.1[/url];
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /home/smert;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
http://nginxs.tk сайт неработает ( вопше не подключается к хосту.
Пользуйтесь тегами BBCode. yars.