Help with nginx and VestaCP

Technical Support
  • Someone help me with this problem.

    I have at my VPS - vestaCP.

    All domains at

    home/admin/web/DOMAIN-NAME/public_html

    i installed nodebb at opt/forum/nodebb

    how i can bind domain to my forum?

    Nginx installed from vestaCP.
    Apache is frontend (at domains) nginx (backend - reverse proxy)

    Config from nginx at my domain is -------

    `server {
    listen server_ip:80;
    server_name mydomain www.mydomain.ru;
    error_log /var/log/httpd/domains/blizzardfans.ru.error.log error;
    location / {
    proxy_pass http://server_ip:8080;
    location ~* ^.+.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
    root /home/admin/web/mydomain/public_html;
    access_log /var/log/httpd/domains/mydomain.log combined;
    access_log /var/log/httpd/domains/mydomain.bytes bytes;
    expires max;
    try_files $uri @fallback;
    }
    }
    location /error/ {
    alias /home/admin/web/mydomain/document_errors/;
    }
    location @fallback {
    proxy_pass http://server_ip:8080;
    }
    location ~ /.ht {return 404;}
    location ~ /.svn/ {return 404;}
    location ~ /.git/ {return 404;}
    location ~ /.hg/ {return 404;}
    location ~ /.bzr/ {return 404;}

    include /home/admin/conf/web/nginx.mydomain.conf*;`

    what i need to do?

    i have and SSL nginx too.

    What i need to change?

  • I found an answer.

    Need just install forum to public_html of your domain and setup nginx ( see link below)

    After this you can access forum by www. XXXXXXXXX

    Who have VestaCP just see this guide.

  • You don't need to put it in public_html. It makes no difference.


Suggested Topics


  • 0 Votes
    9 Posts
    843 Views

    @PitaJ Oh, I got it. But I tried and unfortunately it does not change the attribute.

    Plus, I found the value is the length of placeholder 's length. the default English placeholder is "Enter tags here, between 3 and 24 characters each.", that's why it is 50.

    I am using zh-CN, according to translation, it is 23 characters, so value is 23.
    However, one character Chinese is 2 English letter wide, to show the placeholder full, the value need to be 46.

    Can you fix it? thanks.

  • 0 Votes
    2 Posts
    678 Views

    You could try including them in the Custom Header at ACP -> Appearance --> Custom Content

  • 0 Votes
    3 Posts
    1k Views

    @btw6391 are you using Nginx in front? Search this forum for the error and check those posts for a tweak to Nginx.

  • 0 Votes
    3 Posts
    1k Views

    @yariplus thank you, that brought the missing slash back ❤

  • 1 Votes
    14 Posts
    10k Views

    Welp, I solved it.

    Turns out I had the wrong directory specified in nginx for static assets. It was pointing to a different install of nodebb. For some reason that caused issues with socket.io (and only with safari/opera for some reason).

    Now, here's the weird thing. I only recently started using nginx to serve the assets. Recently as in like this morning. Before that I simply had a proxy pass setup and let nodebb serve the assets. I'm not sure what was causing the 400/502 errors then but I'm just glad their solved now.