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