如何给nodejs开发的web 绑定域名,我的服务器是windows 的,现在想把nodejs开发的web网站布上去并绑定域名,我该如何弄?
12 回复
贴一个我自己用的配置.
server {
listen 80;
server_name www.zeroling.com;
location ~ {
proxy_pass http://127.0.0.1:8888;
}
root /home/wssgcg1213/public_html/NB/;
access_log /home/wssgcg1213/NB/nginx.access.log;
error_log /home/wssgcg1213/NB/nginx.error.log;
index index.html index.php;
autoindex off;
location ~* .*\.(gif|jpg|jpeg|png|bmp|ico|css|js|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$ {
expires 2d;
}
}