It was solved; here is my working Apache's nodebb.conf:
<VirtualHost *:80>
ServerName thewizards.club
Redirect permanent / https://thewizards.club
</VirtualHost>
<VirtualHost *:443>
ServerName thewizards.club
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/apache2/ssl/thewizards-club/2_thewizards.club.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key.insecure
SSLCertificateChainFile /etc/apache2/ssl/thewizards-club/1_root_bundle.crt
# ServerAdmin
[email protected]
<Proxy *>
Require all granted
</Proxy>
ProxyRequests off
#ProxyVia on
AllowEncodedSlashes On
#ProxyPreserveHost 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,NE,L]
# NE flag == noescape
ProxyPass /socket.io http://127.0.0.1:4567/socket.io nocanon retry=0
ProxyPassReverse /socket.io http://127.0.0.1:4567/socket.io
ProxyPass / http://127.0.0.1:4567/ nocanon retry=0
ProxyPassReverse / http://127.0.0.1:4567/
ErrorLog /home/web/logs/apache/forum-error.log
CustomLog /home/web/logs/apache/forum-access.log combined
</VirtualHost>
It was fixed it based on these resources: