polewfu.blogg.se

Node http
Node http




node http

Proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for # and much more can be added, see nginx config options # pass the request to the node.js server with the correct headers Server_name yourdomain.example access_log /var/log/nginx/

node http

In it you should have something like: # the IP(s) on which your node server is running. This is what I have done in my Ubuntu box:Ĭreate the file yourdomain.example at /etc/nginx/sites-available/: vim /etc/nginx/sites-available/yourdomain.example

node http

Therefore you need to set up an Nginx config file for node. Nginx works as a front end server, which in this case proxies the requests to a node.js server.






Node http