Hello. On the advice I want to put nginx as a front-end for Apache. The question is: how will nginx determine what is static and what will not? For example, I address to the address / account, I have the rules in .htaccess, but will nginx understand that this is not static?

    1 answer 1

    Nginx does not distinguish statics from dynamics. You simply set the rule for processing statics by extension (css, js, jpg, etc ...), and send the rest of the requests to the proxy (apache or fpm).
    Nginx does not work with .htaccess
    You can also configure a rule with try_files. Nginx will try to give static, and if the file is not found, for example, redirect the request to apache or respond with an error.