On Wed, May 30, 2012 at 4:51 AM, thuan le minh <
leminh...@gmail.com> wrote:
> Yes Ben !
> here is my nginx configuration file :
> server {
> listen
0.0.0.0:86;
> server_name
bongda.com.vn;
> access_log /var/log/nginx/yourdomain.log;
> ........
> location / {
> # The IP(s) on which your node server is running , I chose the
> port 3000
> proxy_pass
http://127.0.0.1:3001;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header Host $http_host;
> proxy_set_header X-NginX-Proxy true;
> proxy_redirect off;
> }
>
> ...
> and about node.js file :
> var http = require('http');
>
> http.createServer(function(req, res){
> res.writeHead(200, {'Conten-type': 'text/plain'});
> res.end(' ');
> }).listen(3001, "127.0.0.1");
Content-Type is spelt wrong but that's inconsequential). What does