Coder Social home page Coder Social logo

nginxplain's Introduction

NGINX routing echoer

Purpose

When integrating several web apps together, it's a very good idea to put an nginx server in front of them and use it's routing and it's location / proxy_pass combinations make them work together like one web app. That also lets you handle all HTTPS via the nginx instance.

Unfortunately, it's a bit difficult to configure nginx, especially if you are new to it. This Python WSGI app exists to make it easier to experiment with an nginx server by having an extremely simple URL echoing app that simply echoes the request full URL to the calling client (I'd recommend curl for this).

Using this you can experiment with your nginx configuration, send requests to the nginx instance and see directly on your command line what the requesting URL was interpreted as by the application server.

E.g as configured from the start, your URL echo server runs on port 12345, and your nginx server on port 5000. A request to the nginx instance with an experimental URI will return:

 $ curl "http://localhost:5000/foo/bar?foo=bar"
 http://localhost/foo/bar?foo=bar

Here you can see that the URL echo server think's it's name is simply 'localhost', and that the entire URI have been transmitted correctly. The purpose of the tool is that you should experiment with this nginx configuration and see what different rules are transforming your requests to in the proxy.

nginxplain's People

Contributors

jacob414 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.