Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // App.js
- var express = require('express');
- var app = express();
- app.get('/', function(req, res) {
- res.end('Hello world!');
- });
- app.listen(3000, '0.0.0.0', function() {
- console.log('Server running at http://0.0.0.0:3000');
- });
- server {
- listen 80;
- server_name testdomain.com;
- location / {
- proxy_pass http://0.0.0.0:3000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- }
- 127.0.0.1 localhost
- 127.0.1.1 my-machine
- 0.0.0.0 testdomain.com
- # The following lines are desirable for IPv6 capable hosts
- ::1 ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- ff00::0 ip6-mcastprefix
- ff02::1 ip6-allnodes
- ff02::2 ip6-allrouters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement