Jump to content

Nginx as reverse proxy to Apache and IPS 4 performance

Featured Replies

Posted

Is anyone using Nginx as reverse caching proxy to Apache in IPS 4?

The performance gains worth the maintance of Nginx?

I only use that solution. 

Nginx is super in any way that you plan to use it :)

  • Author

I only use that solution. 

Is there any special configuration to Nginx to also cache dynamic content from IPS 4 besides static content?

Just use Nginx directly. There's no need to involve Apache at all these days.

@Lukeroge

True !!!!

You can cache dynamin content using Zend opcache and Memcached....

  • Author

I am stuck in Cpanel, and they are going to upgrade the system to allow Nginx as reverse proxy. Otherwise I would go with Nginx only.

Just use Nginx directly. There's no need to involve Apache at all these days.

Apache is slightly better at serving dynamic content, and using the reverse proxy setup, you can also retain all htaccess re-write rules for your server, many other software apps reply on this as well as IPS too. So while you could use nginx alone or even apache alone, both on the current versions work very well and are much improved, doing nginx as a reverse proxy for apache is the best of both worlds. 

 

Haven't needed apache for about 3 years now..

Forums and countless WordPress installs all use one simple bit of code

location / {
        try_files $uri $uri/ /index.php;
}

 

Apache is slightly better at serving dynamic content

In what way is this true? Sure, apache has a built-in PHP interpreter, but php5-fpm is just as fast and can scale to far higher loads than mod_php can.

  • Author

Well, is there any special settings on Nginx as reverse caching proxy for best performance with IPS 4 or just the basic is ok?

In what way is this true? Sure, apache has a built-in PHP interpreter, but php5-fpm is just as fast and can scale to far higher loads than mod_php can.

You know you can also use php5-fpm with Apache right?

People tend to compare Nginx + php-fpm vs Apache, when they should compare Nginx + php-fpm vs Apache + php-fpm.

You know you can also use php5-fpm with Apache right?

People tend to compare Nginx + php-fpm vs Apache, when they should compare Nginx + php-fpm vs Apache + php-fpm.

You can, I did it for a short while. But in that case, you might as well go the full way and use nginx.

You can, I did it for a short while. But in that case, you might as well go the full way and use nginx.

But you may want to use the mods that Apache have. For example i can use the mods of Nginx and Apache ;)

I use Nginx and Apache(mod_php) with htaccess disabled and my site is a bit faster than when i used nginx only solution.

Sure, I suppose mod_php can be a little lower-latency for smaller sites. But php5-fpm can scale to handle much higher loads!

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.