Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. ping -c 3 rails.dev
  2. PING rails.dev (127.0.0.1): 56 data bytes
  3. 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.049 ms
  4. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.206 ms
  5. 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.291 ms
  6.  
  7. worker_processes 1;
  8.  
  9. error_log /usr/local/etc/nginx/logs/error.log debug;
  10.  
  11. events {
  12. worker_connections 1024;
  13. }
  14.  
  15. http {
  16. include mime.types;
  17. default_type application/octet-stream;
  18.  
  19. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  20. '$status $body_bytes_sent "$http_referer" '
  21. '"$http_user_agent" "$http_x_forwarded_for"';
  22.  
  23. access_log /usr/local/etc/nginx/logs/access.log main;
  24. sendfile on;
  25. keepalive_timeout 65;
  26. index index.html index.php;
  27. include /servers/*;
  28. }
  29.  
  30. server {
  31. listen 80;
  32. server_name localhost;
  33. client_max_body_size 4G;
  34. keepalive_timeout 5;
  35.  
  36. location / {
  37. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  38. proxy_set_header Host $http_host;
  39. proxy_pass_header X-Accel-Redirect;
  40. proxy_read_timeout 300s;
  41. if (!-f $request_filename) {
  42. proxy_pass http://127.0.0.1:3001;
  43. break;
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement