A question about Nginx reverse proxy

Source: Internet
Author: User
Tags nginx reverse proxy
Preliminary to the Nginx, please understand the novice problem ha, thank you!

Nginx can reverse proxy apache processing dynamic part, into LANMP combination.
So I have a few little questions:

1. Is Apache under the LANMP scene apache+mod_php? or APACHE+PHP-FPM or fcgi and so on?

2, LNMP under the NGINX+PHP-FPM, not also processing. php? Combination LANMP plus Apache just to solve the stability problem under LNMP?

3, if the LANMP architecture with APACHE+PHP-FPM is not as good as the direct use of LNMP? Are the factors of instability mainly on PHP-FPM?

4, it is said that mod_php performance than PHP-FPM, if the LANMP is the pursuit of apache+mod_php stability or expansion, then LANMP is not a single performance than LNMP?

Reply content:

Preliminary to the Nginx, please understand the novice problem ha, thank you!

Nginx can reverse proxy apache processing dynamic part, into LANMP combination.
So I have a few little questions:

1. Is Apache under the LANMP scene apache+mod_php? or APACHE+PHP-FPM or fcgi and so on?

2, LNMP under the NGINX+PHP-FPM, not also processing. php? Combination LANMP plus Apache just to solve the stability problem under LNMP?

3, if the LANMP architecture with APACHE+PHP-FPM is not as good as the direct use of LNMP? Are the factors of instability mainly on PHP-FPM?

4, it is said that mod_php performance than PHP-FPM, if the LANMP is the pursuit of apache+mod_php stability or expansion, then LANMP is not a single performance than LNMP?

1, generally speaking apache+mod_php;
2, performance, Nginx for the static file processing is better than Apache, and apache+mod_php this mod loading mode than NGINX+PHP-FPM performance better. The combination of LANMP is for optimal performance;
3, APACHE+PHP-FPM, at present I have not seen anyone used. Because Apache has a strong internal processing mechanism, it is generally made into mods. In turn nginx almost does nothing and is completely externally processed.
4, has not heard the mod_php performance is inferior to the PHP-FPM, exactly said this and the flow model relates.

And the two in performance, the general low-end server can not show what is the obvious difference. Of course, if you are using the default configuration file, then certainly static request more Nginx wins. Apache is only the memory eaten after start will make you have a big boss of the illusion, but in fact, just for the dynamic processing of the warm-up exercise has been better than the Nginx only static and forward the small engine.

1.php generally does not limit whether it is mod_php or php-fpm or fcgi, see your PHP version. Now it is usually used php-fpm. This is just a PHP
2.nginx only do reverse proxies? Nginx can certainly do the server, but this should not be done server.
3. Unstable factors are not necessarily in the PHP-FPM, also may be in the concurrent processing middleware, specific can search, Apache and Nginx performance Advantage contrast.
4. Generally speaking, the ease of tolerance, stability, with the increase of the system may have some differences. Simple architectures may not have much impact.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.