Is using apache and nginx at the same time a good idea?
I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this
location / {
proxy_pass http://localhost:81
}
I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?
nginx apache-2.4
New contributor
add a comment |
I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this
location / {
proxy_pass http://localhost:81
}
I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?
nginx apache-2.4
New contributor
2
You can certainly serve phpBB with nginx.
– Michael Hampton♦
9 hours ago
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
9 hours ago
add a comment |
I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this
location / {
proxy_pass http://localhost:81
}
I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?
nginx apache-2.4
New contributor
I sometimes use apache in port 81 and run in port 80 (or 443) using nginx, like this
location / {
proxy_pass http://localhost:81
}
I have to do this because some software (Like phpbb does not run properly on nginx)
Is this a good idea?
nginx apache-2.4
nginx apache-2.4
New contributor
New contributor
New contributor
asked 9 hours ago
qorg11qorg11
182
182
New contributor
New contributor
2
You can certainly serve phpBB with nginx.
– Michael Hampton♦
9 hours ago
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
9 hours ago
add a comment |
2
You can certainly serve phpBB with nginx.
– Michael Hampton♦
9 hours ago
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
9 hours ago
2
2
You can certainly serve phpBB with nginx.
– Michael Hampton♦
9 hours ago
You can certainly serve phpBB with nginx.
– Michael Hampton♦
9 hours ago
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
9 hours ago
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
9 hours ago
add a comment |
2 Answers
2
active
oldest
votes
There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.
If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.
add a comment |
Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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
});
}
});
qorg11 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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2fserverfault.com%2fquestions%2f950438%2fis-using-apache-and-nginx-at-the-same-time-a-good-idea%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.
If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.
add a comment |
There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.
If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.
add a comment |
There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.
If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.
There is certainly nothing wrong with running a reverse proxy like this, but you do need to decide if it is really necessary.
If you can avoid doing so it will be easier all the way around. It shouldn't be your default. If there is some specific benefit you need - specific versions of libraries, proxying back to a different network segment, etc - it's worth while.
answered 9 hours ago
Tim BrighamTim Brigham
13.2k74995
13.2k74995
add a comment |
add a comment |
Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?
New contributor
add a comment |
Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?
New contributor
add a comment |
Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?
New contributor
Nginx has capability to cache and deliver static content very fast (in comparsion to apache), so combination of both servers in some cases works well.
If you use nginx as a proxy to Apache, you can tune Apache to listen only on loopback address (127.0.0.1) not to confuse if someone will come to your host at port 81.
And, sure, phpbb works perfectly with nginx only. Better describe your problem, what is not properly in your meaning?
New contributor
New contributor
answered 9 hours ago
KorxifKorxif
311
311
New contributor
New contributor
add a comment |
add a comment |
qorg11 is a new contributor. Be nice, and check out our Code of Conduct.
qorg11 is a new contributor. Be nice, and check out our Code of Conduct.
qorg11 is a new contributor. Be nice, and check out our Code of Conduct.
qorg11 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- 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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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%2fserverfault.com%2fquestions%2f950438%2fis-using-apache-and-nginx-at-the-same-time-a-good-idea%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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
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
2
You can certainly serve phpBB with nginx.
– Michael Hampton♦
9 hours ago
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
9 hours ago