nginx/apache proxy whut?

General Discussion
  • Hi nodebb Community!

    I'm using nodebb since a few days. This software ist amazing, but I am a little bit confused.

    My Server is running Debian 7. I'm normally adding a virtual server using webmin. But I never did something with proxys. Could somebody help me to bind a Domain to my nodebb using Port 4567 ?

    best wishes
    Janis

    edit:

    I tried this:
    https://docs.nodebb.org/en/latest/configuring/proxies/apache.html

  • Okay, Update!

    I installed Ubuntu 1404, (because of missing apache 2.4 for Debian)
    and everything else needed. NodeBB is running fine, but rave.dig3.net won't redirect to my nodebb forum...

    <VirtualHost *:4567>
    ServerName rave.dig3.net
    <Proxy *>
        order deny,allow
        allow from all
    </Proxy>
    ProxyPass /socket.io/1/websocket ws://127.0.0.1:4567/socket.io/1/websocket
    
    ProxyPassReverse /socket.io/1/websocket ws://127.0.0.1:4567/socket.io/1/websocket
    
    ProxyPass /socket.io/ http://127.0.0.1:4567/socket.io/
    ProxyPassReverse /socket.io/ http://127.0.0.1:4567/socket.io/
    
    ProxyPass / http://127.0.0.1:4567/
    ProxyPassReverse / http://127.0.0.1:4567/
    </VirtualHost>
    

    Is this right? It redirect me to "Apache2 Ubuntu Default Page" (var/www/html)

  • <VirtualHost *:4567>
    
    ServerName rave.dig3.net 
    <Proxy *>
    order deny,allow
    allow from all
    </Proxy>
    

    I don't use Apache, but it should be looking at port 80. Not 4567.

  • 503 Service Unavailable

    😒

    but even using nginx it does not work...

    502 Bad Gateway

    server {
    listen 80;
    
    server_name rave.dig3.net;
    
    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
    
        proxy_pass http://127.0.0.1:4567/;
        proxy_redirect off;
    
        # Socket.IO Support
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
       }
      }
    

    I followed the documentation and some posts here... but nothing works

    IT WORKS

    https://community.nodebb.org/topic/1957/nginx-502-bad-gateway/17 this helped me

  • @jmj I found that this thread was deleted, I've restored it because I think it will be useful to someone in the future. Hope that's OK with you - and I'm glad you figured it out 🙂


Suggested Topics


  • 0 Votes
    5 Posts
    117 Views

    @baris strangely enough, the category list loads now! And it doesn't look like there's any circularness in the list.

    1c811ac6-83ea-4dd2-b1d9-3af633f45e90-image.png

    Still, trying to manage the admin group via /admin/manage/groups/administrators or /admin/manage/admins-mods results in a gateway timeout. I've also enabled verbose logging, which displays this upon visiting either of these two urls:

    x.x.x.x - - [01/Nov/2022:17:12:10 +0000] "GET /forum/admin/manage/admins-mods HTTP/1.1" - - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"

    Now there's no response code. Strange.

  • 0 Votes
    2 Posts
    3k Views

    @educator Hi there. Fellow Indian here. I would recommend DigitalOcean over Vultr due to a number of reasons having used both. However there is a 3rd option which is better imo and that is Linode. 2 main reasons.

    Linode offers double RAM at 10$. You get 2gb RAM instead of 1gb for 10$. What I am getting from your post is that you want a 5$ plan. However it will be insufficient for even a small sized forum. Try going for the 2gb RAM option at Linode. Unless you are a registered business in India you shall have to pay 15% service tax on Digitalocean as of Jan 1 2016. Businesses dont have to pay this tax as long as they dont have a turnover of greater than 10 lacs per annum. This is because DO has officially entered the Indian Market and will need to comply with the Indian Tax authorities. This is not the case of Linode as they dont have an Indian office . This means that the DO plan at 10$ will be more than twice expensive when compared to Linode.

    Rest is upto you. Feel free to ask anymore questions

  • 1 Votes
    5 Posts
    2k Views

    Is there any improvements regarding this feature?

  • 1 Votes
    8 Posts
    4k Views

    Key to the cupboard I keep her locked in... 😆... tumbleweed

  • 0 Votes
    4 Posts
    2k Views

    Ok, imgur plugin issue. Uninstalled and re installed.