Guest User

Untitled

a guest
Jul 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #this is where nginix is running with SSL on
  2. server
  3. {
  4. server_name myserver.com;
  5. listen 443;
  6. ssl on;
  7. ssl_certificate pathtocert;
  8. ssl_certificate_ke keypath ;
  9. #I want nginix to route the call ip x.x.x.x
  10. # which is being passed as request parameter named 'name'
  11. location /gotoserver?name=x.x.x.x
  12. {
  13. set dserver $arg_name
  14. proxy_pass http://dserver:80
  15.  
  16. }
  17. }
  18.  
  19. location /
  20. {
  21. proxy_pass http://X.X.X.X:80
  22. }
Add Comment
Please, Sign In to add comment