Guest User

Untitled

a guest
Feb 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name my_fake_domain.com;
  4. access_log C:/nginxlogs/access.txt;
  5. location / {
  6. proxy_pass http://localhost:8080;
  7. proxy_set_header Host $host;
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10. proxy_read_timeout 1800;
  11. proxy_connect_timeout 1800;
  12. }
  13. }
  14.  
  15. 'use strict';
  16.  
  17. const http = require('http');
  18.  
  19. const httpServer = http.createServer((req, res) => {
  20. res.writeHead(200, { 'Content-Type': 'text/plain' });
  21. res.end('okay');
  22. });
  23.  
  24. httpServer.listen(8080, '0.0.0.0');
Add Comment
Please, Sign In to add comment