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;
}
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
apache2 nginx ssl
New contributor
New contributor
New contributor
asked 16 hours ago
Joe GallagherJoe Gallagher
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered 13 hours ago
vidarlovidarlo
10.9k52852
10.9k52852
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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