Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // App.js
  2. var express = require('express');
  3. var app = express();
  4.  
  5. app.get('/', function(req, res) {
  6. res.end('Hello world!');
  7. });
  8.  
  9. app.listen(3000, '0.0.0.0', function() {
  10. console.log('Server running at http://0.0.0.0:3000');
  11. });
  12.  
  13. server {
  14. listen 80;
  15.  
  16. server_name testdomain.com;
  17.  
  18. location / {
  19. proxy_pass http://0.0.0.0:3000;
  20. proxy_http_version 1.1;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection 'upgrade';
  23. proxy_set_header Host $host;
  24. proxy_cache_bypass $http_upgrade;
  25. }
  26. }
  27.  
  28. 127.0.0.1 localhost
  29. 127.0.1.1 my-machine
  30. 0.0.0.0 testdomain.com
  31.  
  32. # The following lines are desirable for IPv6 capable hosts
  33. ::1 ip6-localhost ip6-loopback
  34. fe00::0 ip6-localnet
  35. ff00::0 ip6-mcastprefix
  36. ff02::1 ip6-allnodes
  37. ff02::2 ip6-allrouters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement