1

I have nginx as the front proxy server, All traffics go through that, and on the same machine I need to run PHP so the quick easy way was running apache.

I only enabled SSL on nginx so things are running with HTTPS, is it safe? Having both running on SSL seems odd, resource inefficient.

1
  • 1
    Yes, but nginx can serve as the origin server and run PHP perfectly well (many of us would say better than Apache). You can probably safely eliminate Apache with an nginx + php-fpm setup. Aug 16, 2012 at 6:11

2 Answers 2

2

Having SSL running on only Nginx is a safe way to do things. To intercept traffic the attacker would need to have access to your local machine.

Running SSL on both Nginx and Apache is a waste of resources, it's no point in encrypting traffic between load balancer and your application server that in this case are Apahce.

0

I only enabled SSL on nginx so things are running with HTTPS, is it safe?

Yes, it is perfectly safe to run nginx as an SSL-terminator in front of Apache.

However, both Apache and nginx are able to run HTTPS and PHP, so for simplicity you can either move the HTTPS to Apache or PHP to nginx if you'd like.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .