We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45632
    • 4 Posts
    Hello!

    I have a problem with Revo manager. The first manager page (after login) loads very slowly, especially on Chrome browser. And then, the first page with editor is slow too, sometimes to the point when browser says that the page is not responding. Then everything is loading fine. I'm sure it's because of production server configuration, since we had no problems on local machine and shared hosting we used for demonstration.

    However, I'm not entirely sure where to look for the source of this problem, but the first thing that comes to mind is this exotic nginx setup:


    server {
    listen 0.0.0.0:80;
    server_name xxx.xxx.ru xxx.xxx.xxx.ru;
    error_page 418 = @hhvm;
    error_page 419 = @apache;
    root /var/www/xxx.xxx.ru/root/;

    if ($request_uri ~ "/manager") {
    return 419;
    }
    if ($request_uri ~ "/connectors") {
    return 419;
    }
    if ($request_uri ~ "/setup") {
    return 419;
    }
    if ($request_uri ~ "^/phpmyadmin") {
    return 419;
    }
    if ($request_uri ~ "/$") {
    return 418;
    }
    if ($request_uri ~ "\.php$") {
    return 418;
    }
    if ($is_args = "?") {
    return 418;
    }

    location ~ $ {
    try_files $uri @hhvm;
    }

    location @hhvm {
    if (!-e $request_filename){
    rewrite ^/(ru|en)?/?(.*)$ /index.php?cultureKey=$1&q=$2 break;
    }
    if (!-e $request_filename){
    rewrite ^/(ru|en)/favicon.ico$ /favicon.ico break;
    }
    if (!-e $request_filename){
    rewrite ^/(ru|en)/assets(.*)$ /assets$2 break;
    }
    if (!-e $request_filename){
    rewrite ^/(ru|en)?/?(.*)$ /index.php?cultureKey=$1&q=$2 break;
    }

    fastcgi_index index.php;
    fastcgi_keep_conn on;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param SCRIPT_FILENAME /var/www/xxx.xxx.ru/root$fastcgi_script_name;
    include fastcgi_params;
    }

    location @apache {
    proxy_read_timeout 900;
    proxy_no_cache 1;
    proxy_cache_bypass 1;
    proxy_pass http://127.0.0.1:81;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Referer $scheme://$host$request_uri;
    client_max_body_size 256M;
    proxy_pass_header Set-Cookie;
    proxy_pass_header Cookie;
    proxy_buffer_size 32k;
    proxy_buffers 4 32k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;
    proxy_max_temp_file_size 32m;
    }

    }

    server {
    listen *:80 default;
    location / {
    rewrite ^ http://$host$request_uri? permanent;
    }
    }

    As you can see, manager works on apache and the front-end works on hhvm.
    I don't know if this setup is the cause of the problem we have. So I can also provide any other details if needed.