• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

socket.io connection error 503

Scheduled Pinned Locked Moved Unsolved Technical Support
2 Posts 1 Posters 2.6k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HasanCH Offline
    HasanCH Offline
    HasanC
    wrote on last edited by
    #1

    Hello,

    I get "can’t establish a connection to the server at wss://forum.mydomain.com/socket.io/?EIO=3&tra...." error.
    There is something wrong on my proxy settings.

    Could anybody help me about that issue?
    Thanks.

    *nodebb working on unix socket,

    {
        "url": "https://forum.mydomain.com/",
        "port": "/tmp/nodebb.sock",
        "secret": "145a922f----------------------",
        "database": "redis",
        "redis": {
            "host": "/tmp/redis.sock",
            "password": "longlongpass",
            "database": "0"
        }
    }
    
    
    ProxyRequests off
    
    SSLProxyEngine On
    RequestHeader set X-Forwarded-Proto "https"
    RewriteEngine On
    RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
    RewriteCond %{QUERY_STRING} transport=websocket    [NC]
    RewriteRule /(.*)           ws://127.0.0.1:4567/$1 [P,L]
    ProxyPass / unix:/tmp/nodebb.sock|http://127.0.0.1/
    ProxyPassReverse / unix:/tmp/nodebb.sock|http://127.0.0.1/
    
    1 Reply Last reply
    0
  • HasanCH Offline
    HasanCH Offline
    HasanC
    wrote on last edited by
    #2

    Ok, i think nobody will answer that question.

    After dig it i realised that the issue is about apache mod_proxy_wstunnel. When nodebb works on TCP port there is no problem but on unix socket it seems that mod_proxy_wstunnel is not meant to work with Unix domain sockets.

    For example;
    ProxyPass "/ws" "unix:/tmp/nodebb.sock|ws://127.0.0.1/" not work.

    Best Regards,

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development