learn-nginx | Nginx Getting Started Guide | Proxy library

 by   xuexb Shell Version: Current License: MIT

kandi X-RAY | learn-nginx Summary

kandi X-RAY | learn-nginx Summary

learn-nginx is a Shell library typically used in Networking, Proxy, Nginx applications. learn-nginx has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Nginx Getting Started Guide
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              learn-nginx has a medium active ecosystem.
              It has 853 star(s) with 166 fork(s). There are 19 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 6 open issues and 6 have been closed. On average issues are closed in 53 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of learn-nginx is current.

            kandi-Quality Quality

              learn-nginx has no bugs reported.

            kandi-Security Security

              learn-nginx has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              learn-nginx is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              learn-nginx releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of learn-nginx
            Get all kandi verified functions for this library.

            learn-nginx Key Features

            No Key Features are available at this moment for learn-nginx.

            learn-nginx Examples and Code Snippets

            No Code Snippets are available at this moment for learn-nginx.

            Community Discussions

            QUESTION

            NGINX on Docker Swarm to serve multiple applicaions on the same port
            Asked 2019-Jun-15 at 22:13

            I know that similar questions have been asked, but none of the topics, articles and blogs that I found allowed me to resolve my issue. Let me be very straightforward and specific here:

            1. What I have:

            Docker Swarm cluster (1 local node), NGINX as a reverse proxy, and for the sake of this example: apache, spark, rstudio and jupyter notebook containers.

            2. What I want:

            I want to set up NGINX to that I can expose to the host only one port (80 - NGINX) and serve these 4 applications through NGINX over the same port (80) but different paths. On my local dev environment I want apache to be accesible on "127.0.0.1/apache", rstudio under "127.0.0.1/rstudio", spark UI under "127.0.0.1/spark" and jupyter under "127.0.0.1/jupyter". All these applications use different ports internally, this is not a problem (apache - 80, spark - 8080, rstudio - 8787, jupyter - 8888). I want them to use the same port externally, on the host.

            3. What I don't have:

            I don't have and won't have a domain name. My stack should be able to work when all I have is a public IP to the server or multiple servers that I own. No domain name. I saw multiple examples on how to do things that I want to do using hostnames, I don't want that. I want to acces my stack only by IP and path, for example 123.123.123.123/jupyter.

            4. What I came up with:

            And now to my actual problem - I have a partialy working solution. Concretely, apache and rstudio are working ok, jupyter and spark are not. By not I mean that jupyter redirections are causing problems. When I go to 127.0.0.1/jupyter I am being redirected to the login page, but instead of redirecting to 127.0.0.1/jupyter/tree, it redirects me to 127.0.0.1/tree, which of course does not exist. Spark UI won't render properly, beacuse all css and js files are under 127.0.0.1/spark/some.css, but spark UI tries to get them from 127.0.0.1/some.css and the same story is basically with all other dashboards

            In my actual stack I have more services like hue, kafdrop etc. and none of them work. Actually the only things that work are apache, tomcat and rstudio. I'm suprised that rstudio works without problems with authentication, logging in, out etc. It is completely ok. I actually have no idea why it works, when everything else fails.

            I tried to do the same with Traefik - same outcome. With traefik I could not even set up rstudio, all dashboards suffered the same problem - not properly loading static content, or dashboards with login page - bad redirects.

            5. Questions:

            So my questions are:

            • are the things that I'm trying to acomplish even possible?
            • if not, why using different hostnames makes it possible, but different paths on the same host do not work?
            • if it is possible, then how should I set up NGINX to work properly?

            My minimal working example is below: First initialize swarm and create network:

            ...

            ANSWER

            Answered 2019-Jun-15 at 22:13

            I can't help with Jupyter and Spark but hope that this answer will help you.

            If you plan to put something behind a reverse proxy, you should verify that it can work behind a reverse proxy, as you mentioned.

            127.0.0.1/jupyter/tree, it redirects me to 127.0.0.1/tree

            because for Jupyter root is /, not /jupyter, so you need to find in config how to change it, as an example for Grafana.

            Source https://stackoverflow.com/questions/55206460

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install learn-nginx

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/xuexb/learn-nginx.git

          • CLI

            gh repo clone xuexb/learn-nginx

          • sshUrl

            git@github.com:xuexb/learn-nginx.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Proxy Libraries

            frp

            by fatedier

            shadowsocks-windows

            by shadowsocks

            v2ray-core

            by v2ray

            caddy

            by caddyserver

            XX-Net

            by XX-net

            Try Top Libraries by xuexb

            github-bot

            by xuexbJavaScript

            mdjs

            by xuexbJavaScript

            web-oauth-app

            by xuexbJavaScript

            nginx-conf

            by xuexbShell

            demo

            by xuexbJavaScript