Comment to 'UNA nginx rewrite rules'
  • Alex T⚜️ I am using plesk with apache proxy off. I got everything working, but when I open Apps market it will take forever to install an app and sometimes it will be done, I will see the fastcgi error in the log, wheel still going, and refresh and module will be there,. Also if I go into notifications I sometimes get 504 when it goes to load the settings. This lets me know I am still dealing with an issue. Here are my current NGINX directives: 

    location / {

        index index.html index.htm index.php;

        rewrite "^/page/(.*)$" /page.php?i=$1 last;

        rewrite "^/m/(.*)$" /modules/index.php?r=$1 last;

        rewrite "^/s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)" /storage.php?o=$1&f=$2 last;

        if (!-e $request_filename ) {

            rewrite  ^/(.+)$  /r.php?_q=$1  last;





    proxy_buffer_size          128k;

    proxy_buffers              4 256k;

    proxy_busy_buffers_size    256k;


    fastcgi_buffers 16 16k;

    fastcgi_buffer_size 32k;

    sesion time

    proxy_connect_timeout 900;

    proxy_send_timeout 900;

    fastcgi_send_timeout 900;

    fastcgi_read_timeout 900;

    gzip off;

    brotli on;

    Is there anything I may be missing. You can see everything I have done in my plesk discussion here: the error what I get with this is the fastcgi upstream error when it is installing apps from the studio. Or if anyone else has had experience with PLESK and NGINX that has ran into similar issues.