Answer the question
In order to leave comments, you need to log in
Is it possible to configure access to apache only through nginx?
Good day!
There is an apache server with a web resource. There is an nginx server that redirects requests to the apache server. There are proxy settings on nginx:
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
Answer the question
In order to leave comments, you need to log in
Are they on the same car?
If yes, then just hang Apache on 127.0.0.1
. If not, then configure a firewall on the Apache machine to allow connections only from the nginx host.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question