Is using apache and nginx at the same time a good idea?
Clash Royale CLAN TAG#URR8PPP
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
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
3
You can certainly serve phpBB with nginx.
– Michael Hampton♦
Jan 23 at 20:00
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
Jan 23 at 20:11
If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?
– Tommiie
Jan 24 at 7:54
my question wasn't about how to fix phpbb. please read the title
– qorg11
Jan 24 at 14:01
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
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
asked Jan 23 at 19:53
qorg11qorg11
193
193
3
You can certainly serve phpBB with nginx.
– Michael Hampton♦
Jan 23 at 20:00
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
Jan 23 at 20:11
If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?
– Tommiie
Jan 24 at 7:54
my question wasn't about how to fix phpbb. please read the title
– qorg11
Jan 24 at 14:01
add a comment |
3
You can certainly serve phpBB with nginx.
– Michael Hampton♦
Jan 23 at 20:00
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
Jan 23 at 20:11
If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?
– Tommiie
Jan 24 at 7:54
my question wasn't about how to fix phpbb. please read the title
– qorg11
Jan 24 at 14:01
3
3
You can certainly serve phpBB with nginx.
– Michael Hampton♦
Jan 23 at 20:00
You can certainly serve phpBB with nginx.
– Michael Hampton♦
Jan 23 at 20:00
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
Jan 23 at 20:11
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
Jan 23 at 20:11
If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?
– Tommiie
Jan 24 at 7:54
If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?
– Tommiie
Jan 24 at 7:54
my question wasn't about how to fix phpbb. please read the title
– qorg11
Jan 24 at 14:01
my question wasn't about how to fix phpbb. please read the title
– qorg11
Jan 24 at 14:01
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?
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
);
);
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%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 Jan 23 at 20:07
Tim BrighamTim Brigham
13.3k74995
13.3k74995
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?
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?
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?
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?
answered Jan 23 at 20:11
KorxifKorxif
311
311
add a comment |
add a comment |
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');
);
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');
);
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
3
You can certainly serve phpBB with nginx.
– Michael Hampton♦
Jan 23 at 20:00
>You can certainly serve phpBB with nginx i got errors and i'm to lazy to fix those errors
– qorg11
Jan 23 at 20:11
If you are too lazy to fix the issues then you should not ask whether it's a good idea to run both Apache and nginx. Would you fix the issues if we told you it was a bad idea or would you only shrug at our reply and still be doing it because "you're too lazy to fix the issues"?
– Tommiie
Jan 24 at 7:54
my question wasn't about how to fix phpbb. please read the title
– qorg11
Jan 24 at 14:01