Using Apache's ssl certificates when it is accessed via Nginx reverse proxyHow do I optimize a nginx reverse...

US visa is under administrative processing, I need the passport back ASAP

Error message with tabularx

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

How to verbalise code in Mathematica?

What does it mean to express a gate in Dirac notation?

Can someone publish a story that happened to you?

Please, smoke with good manners

How to creep the reader out with what seems like a normal person?

What's the polite way to say "I need to urinate"?

Pulling the rope with one hand is as heavy as with two hands?

Map of water taps to fill bottles

Are Boeing 737-800’s grounded?

Minor Revision with suggestion of an alternative proof by reviewer

Size of electromagnet needed to replicate Earth's magnetic field

Can I spend a night at Vancouver then take a flight to my college in Toronto as an international student?

Meaning of Bloch representation

What is the relationship between spectral sequences and obstruction theory?

Examples of subgroups where it's nontrivial to show closure under multiplication?

Is there an official tutorial for installing Ubuntu 18.04+ on a device with an SSD and an additional internal hard drive?

Seemingly unused edef prior to an ifx mysteriously affects the outcome of the ifx. Why?

How to reduce LED flash rate (frequency)

In order to check if a field is required or not, is the result of isNillable method sufficient?

French for 'It must be my imagination'?

What are the potential pitfalls when using metals as a currency?



Using Apache's ssl certificates when it is accessed via Nginx reverse proxy


How do I optimize a nginx reverse proxy?Will my nginx reverse proxy cache work?SSL Reverse proxyhow to export an ssl certificate from one to another server? Server migrationNginx SSL Configuration FailingUsing Nginx as a reverse proxy for a PHP site using Apache with URL rewritingCan I run nginx and apache at the same time?Get Apache2 running with nginx as reverse proxyNginx reverse proxy for Apache: does Apache need SSL certificates?Nginx, reverse proxy : how to redirect https to http?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have been running an Apache webserver on my machine for a long while, serving various sites via https. Recently I had to install a Nginx server on the same box, and set it up to reverse proxy most requests to the Apache webserver via port 8080. I can access the sites hosted on the Apache server, but the SSL certificate in use is still the one associated with the Nginx server, not the one referred to in the Apache .conf files. How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?










share|improve this question







New contributor




Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I have been running an Apache webserver on my machine for a long while, serving various sites via https. Recently I had to install a Nginx server on the same box, and set it up to reverse proxy most requests to the Apache webserver via port 8080. I can access the sites hosted on the Apache server, but the SSL certificate in use is still the one associated with the Nginx server, not the one referred to in the Apache .conf files. How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?










    share|improve this question







    New contributor




    Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have been running an Apache webserver on my machine for a long while, serving various sites via https. Recently I had to install a Nginx server on the same box, and set it up to reverse proxy most requests to the Apache webserver via port 8080. I can access the sites hosted on the Apache server, but the SSL certificate in use is still the one associated with the Nginx server, not the one referred to in the Apache .conf files. How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?










      share|improve this question







      New contributor




      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have been running an Apache webserver on my machine for a long while, serving various sites via https. Recently I had to install a Nginx server on the same box, and set it up to reverse proxy most requests to the Apache webserver via port 8080. I can access the sites hosted on the Apache server, but the SSL certificate in use is still the one associated with the Nginx server, not the one referred to in the Apache .conf files. How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?







      apache2 nginx ssl






      share|improve this question







      New contributor




      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 16 hours ago









      Joe GallagherJoe Gallagher

      1




      1




      New contributor




      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Joe Gallagher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0















          How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?




          You can't.



          If nginx can't decrypt the request from the browser, it can't tell where to forward the request. You need to have valid certificates for nginx.



          If apache and nginx is running on the same machine, using tls between nginx and apache is not really beneficial, as the data will be copied in memory, and never hit the actual wire.



          The common way of doing this is to configure nginx to use the proper certificates for the domain, and forward requests, either in plain text or encrypted, to a backend server.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Joe Gallagher is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138542%2fusing-apaches-ssl-certificates-when-it-is-accessed-via-nginx-reverse-proxy%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?




            You can't.



            If nginx can't decrypt the request from the browser, it can't tell where to forward the request. You need to have valid certificates for nginx.



            If apache and nginx is running on the same machine, using tls between nginx and apache is not really beneficial, as the data will be copied in memory, and never hit the actual wire.



            The common way of doing this is to configure nginx to use the proper certificates for the domain, and forward requests, either in plain text or encrypted, to a backend server.






            share|improve this answer




























              0















              How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?




              You can't.



              If nginx can't decrypt the request from the browser, it can't tell where to forward the request. You need to have valid certificates for nginx.



              If apache and nginx is running on the same machine, using tls between nginx and apache is not really beneficial, as the data will be copied in memory, and never hit the actual wire.



              The common way of doing this is to configure nginx to use the proper certificates for the domain, and forward requests, either in plain text or encrypted, to a backend server.






              share|improve this answer


























                0












                0








                0








                How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?




                You can't.



                If nginx can't decrypt the request from the browser, it can't tell where to forward the request. You need to have valid certificates for nginx.



                If apache and nginx is running on the same machine, using tls between nginx and apache is not really beneficial, as the data will be copied in memory, and never hit the actual wire.



                The common way of doing this is to configure nginx to use the proper certificates for the domain, and forward requests, either in plain text or encrypted, to a backend server.






                share|improve this answer














                How can I direct Nginx to defer to Apache's pre-configured SSL when it forwards a request?




                You can't.



                If nginx can't decrypt the request from the browser, it can't tell where to forward the request. You need to have valid certificates for nginx.



                If apache and nginx is running on the same machine, using tls between nginx and apache is not really beneficial, as the data will be copied in memory, and never hit the actual wire.



                The common way of doing this is to configure nginx to use the proper certificates for the domain, and forward requests, either in plain text or encrypted, to a backend server.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 13 hours ago









                vidarlovidarlo

                10.9k52852




                10.9k52852






















                    Joe Gallagher is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Joe Gallagher is a new contributor. Be nice, and check out our Code of Conduct.













                    Joe Gallagher is a new contributor. Be nice, and check out our Code of Conduct.












                    Joe Gallagher is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138542%2fusing-apaches-ssl-certificates-when-it-is-accessed-via-nginx-reverse-proxy%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                    Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                    Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...