ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Install Nginx as a Reverse Proxy on Fedora 27

    Scheduled Pinned Locked Moved IT Discussion
    nginxfedoracertbotfedora 27reverse proxyguidesreal instructionshow to
    107 Posts 16 Posters 23.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @momurda
      last edited by

      @momurda said in Install Nginx as a Reverse Proxy on Fedora 27:

      @JaredBusch This is transparent to the www application server? I mean, Nextcloud server itself has no https configuration, it all handled through this proxy?
      If so, this same process could be done using IIS sites in addition to apache correct?

      Can be, and is, used with anything that has a web interface. Apache, Nginx, IIS, NodeJS, it doesn't care. A Reverse proxy is just a proxy in front of whatever HTTP traffic is behind it. So the platform behind it doesn't matter. Mix and match anything and everything.

      momurdaM 1 Reply Last reply Reply Quote 0
      • momurdaM
        momurda @scottalanmiller
        last edited by

        @scottalanmiller So if i set this up to work with an IIS site, this IIS site has an existing cert, i would first uninstall that ssl cert, and not install another? This is what I picture.

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @momurda
          last edited by

          @momurda said in Install Nginx as a Reverse Proxy on Fedora 27:

          @scottalanmiller So if i set this up to work with an IIS site, this IIS site has an existing cert, i would first uninstall that ssl cert, and not install another? This is what I picture.

          You can do either, with small adjustments. Your servers behind your reverse proxy can use HTTP or HTTPS as you desire. but there is rarely much point to the overhead of HTTPS, so many of us skip it unless there is a specific reason to have it (like you are using it without the reverse proxy for LAN based access.)

          JaredBuschJ 1 Reply Last reply Reply Quote 3
          • JaredBuschJ
            JaredBusch @scottalanmiller
            last edited by

            @scottalanmiller said in Install Nginx as a Reverse Proxy on Fedora 27:

            @momurda said in Install Nginx as a Reverse Proxy on Fedora 27:

            @scottalanmiller So if i set this up to work with an IIS site, this IIS site has an existing cert, i would first uninstall that ssl cert, and not install another? This is what I picture.

            You can do either, with small adjustments. Your servers behind your reverse proxy can use HTTP or HTTPS as you desire. but there is rarely much point to the overhead of HTTPS, so many of us skip it unless there is a specific reason to have it (like you are using it without the reverse proxy for LAN based access.)

            If the existing server is designed for HTTP, I usually do not remove it. I just point the Nginx server block at it.

            Even if it is expired or self signed, it is sitll encyrpted between the proxy and the backend server.

            Now if the backend server has no encryption, I will not add it for no reason.

            Finally, if the backend server is across a public IP space, I will always use at least a self signed SSL cert for the connection.

            1 Reply Last reply Reply Quote 3
            • A
              Alex Sage
              last edited by

              Here is the command if you want a wildcard cert:

              sudo certbot  -i nginx -d "*.aaronstuder.com" -d aaronstuder.com --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns
              
              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @Alex Sage
                last edited by

                @aaronstuder said in Install Nginx as a Reverse Proxy on Fedora 27:

                Here is the command if you want a wildcard cert:

                sudo certbot  -i nginx -d "*.aaronstuder.com" -d aaronstuder.com --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns
                

                Wildcard form LE is useless until you automate the DNS challenge.

                A 1 Reply Last reply Reply Quote 0
                • A
                  Alex Sage @JaredBusch
                  last edited by Alex Sage

                  @jaredbusch It's coming. Right now it just pauses and you update DNS manually, or you can use acme.sh

                  1 Reply Last reply Reply Quote 0
                  • EddieJenningsE
                    EddieJennings
                    last edited by

                    If you're using one reverse proxy to serve traffic to more than one server, do you typically put all of the configurations in one file, or have a main configuration file, and use include to reference other files? Methinks the way to go is just have one file with server blocks for however many servers you need.

                    black3dynamiteB 1 Reply Last reply Reply Quote 0
                    • black3dynamiteB
                      black3dynamite @EddieJennings
                      last edited by

                      @eddiejennings said in Install Nginx as a Reverse Proxy on Fedora 27:

                      If you're using one reverse proxy to serve traffic to more than one server, do you typically put all of the configurations in one file, or have a main configuration file, and use include to reference other files? Methinks the way to go is just have one file with server blocks for however many servers you need.

                      Using separate config is more easier to manage.

                      1 Reply Last reply Reply Quote 1
                      • bbigfordB
                        bbigford
                        last edited by bbigford

                        "Install nano because I prefer it over vi"

                        Nano really should just be the standard at this point, IMO.

                        JaredBuschJ 1 Reply Last reply Reply Quote 2
                        • JaredBuschJ
                          JaredBusch @bbigford
                          last edited by

                          @bbigford said in Install Nginx as a Reverse Proxy on Fedora 27:

                          "Install nano because I prefer it over vi"

                          Nano really should just be the standard at this point, IMO.

                          I worded it like that to appease people like @scottalanmiller to prevent some stupid commentary about unneeded packages

                          coliverC 1 Reply Last reply Reply Quote 6
                          • coliverC
                            coliver @JaredBusch
                            last edited by

                            @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                            JaredBuschJ 1 Reply Last reply Reply Quote 6
                            • JaredBuschJ
                              JaredBusch @coliver
                              last edited by

                              @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                              @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                              Pretty much exactly

                              stacksofplatesS 1 Reply Last reply Reply Quote 0
                              • stacksofplatesS
                                stacksofplates @JaredBusch
                                last edited by

                                @jaredbusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                                Pretty much exactly

                                I can't make fun. I prefer Vim. I've tried to use nano and I felt clunky. But to each their own. Just don't use emacs :upside-down_face:

                                coliverC 1 Reply Last reply Reply Quote 1
                                • coliverC
                                  coliver @stacksofplates
                                  last edited by

                                  @stacksofplates said in Install Nginx as a Reverse Proxy on Fedora 27:

                                  @jaredbusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                  @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                  @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                                  Pretty much exactly

                                  I can't make fun. I prefer Vim. I've tried to use nano and I felt clunky. But to each their own. Just don't use emacs :upside-down_face:

                                  I use vi/vim almost exclusively. I just enjoy poking fun at the people who are evangelical about it.

                                  travisdh1T 1 Reply Last reply Reply Quote 1
                                  • travisdh1T
                                    travisdh1 @coliver
                                    last edited by

                                    @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                    @stacksofplates said in Install Nginx as a Reverse Proxy on Fedora 27:

                                    @jaredbusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                    @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                    @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                                    Pretty much exactly

                                    I can't make fun. I prefer Vim. I've tried to use nano and I felt clunky. But to each their own. Just don't use emacs :upside-down_face:

                                    I use vi/vim almost exclusively. I just enjoy poking fun at the people who are evangelical about it.

                                    Given a choice, nano. I'm good with vi/vim as well tho, IRIX really required competency with it.

                                    ObsolesceO 1 Reply Last reply Reply Quote 0
                                    • ObsolesceO
                                      Obsolesce @travisdh1
                                      last edited by

                                      @travisdh1 said in Install Nginx as a Reverse Proxy on Fedora 27:

                                      @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                      @stacksofplates said in Install Nginx as a Reverse Proxy on Fedora 27:

                                      @jaredbusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                      @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                      @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                                      Pretty much exactly

                                      I can't make fun. I prefer Vim. I've tried to use nano and I felt clunky. But to each their own. Just don't use emacs :upside-down_face:

                                      I use vi/vim almost exclusively. I just enjoy poking fun at the people who are evangelical about it.

                                      Given a choice, nano. I'm good with vi/vim as well tho, IRIX really required competency with it.

                                      Nano is annoying, inconvenient, and much less efficient than using vim. I have no idea anymore why I used nano before, I strictly use vim now, and my life on Linux has never been better.

                                      travisdh1T 1 Reply Last reply Reply Quote 0
                                      • ObsolesceO
                                        Obsolesce
                                        last edited by

                                        Everything you do in Nano can be done faster and more conveniently in Vim... that's been my personal experience for a while now.

                                        1 Reply Last reply Reply Quote 0
                                        • travisdh1T
                                          travisdh1 @Obsolesce
                                          last edited by

                                          @tim_g said in Install Nginx as a Reverse Proxy on Fedora 27:

                                          @travisdh1 said in Install Nginx as a Reverse Proxy on Fedora 27:

                                          @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                          @stacksofplates said in Install Nginx as a Reverse Proxy on Fedora 27:

                                          @jaredbusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                          @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                          @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                                          Pretty much exactly

                                          I can't make fun. I prefer Vim. I've tried to use nano and I felt clunky. But to each their own. Just don't use emacs :upside-down_face:

                                          I use vi/vim almost exclusively. I just enjoy poking fun at the people who are evangelical about it.

                                          Given a choice, nano. I'm good with vi/vim as well tho, IRIX really required competency with it.

                                          Nano is annoying, inconvenient, and much less efficient than using vim. I have no idea anymore why I used nano before, I strictly use vim now, and my life on Linux has never been better.

                                          Learn to use the Ctrl key, you know, that new key that was added to keyboards, but vim never got around to using 😜

                                          ObsolesceO 1 Reply Last reply Reply Quote 1
                                          • ObsolesceO
                                            Obsolesce @travisdh1
                                            last edited by Obsolesce

                                            @travisdh1 said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @tim_g said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @travisdh1 said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @stacksofplates said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @jaredbusch said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @coliver said in Install Nginx as a Reverse Proxy on Fedora 27:

                                            @jaredbusch 0_1524226298968_a9d48ad2-c13d-440c-94c5-a6951b5f6887-image.png

                                            Pretty much exactly

                                            I can't make fun. I prefer Vim. I've tried to use nano and I felt clunky. But to each their own. Just don't use emacs :upside-down_face:

                                            I use vi/vim almost exclusively. I just enjoy poking fun at the people who are evangelical about it.

                                            Given a choice, nano. I'm good with vi/vim as well tho, IRIX really required competency with it.

                                            Nano is annoying, inconvenient, and much less efficient than using vim. I have no idea anymore why I used nano before, I strictly use vim now, and my life on Linux has never been better.

                                            Learn to use the Ctrl key, you know, that new key that was added to keyboards, but vim never got around to using 😜

                                            It's not needed... but does make use of the Ctrl key for a few things.

                                            Easy example... In Nano, to save and close a file is a hassle. In Vim, Shift+ZZ, done. Quick and easy!

                                            Want to find something? Open your file with Vim, hit / and type what you want to find, hit enter... super easy! It's dumb in Nano.

                                            travisdh1T momurdaM 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • First post
                                              Last post