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 webmaster@localhost
<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:
Apache ProxyPassReverse escaping special characters
I have this very simple reverse proxy rule in Apache 2.2.19:
ProxyPass /test http://other.local.machine/test
ProxyPassReverse /test http://other.local.machine/test
The problem is...
favicon
Server Fault (serverfault.com)
can't get mod_proxy to correctly forward encoded slash (/) characters (%2f)
I have a virtual host set up to redirect ntung-gitblit.localhost --> myserver:1279. However, it's not working with forward encoded slashes (%2f). The URL I'm trying to access is,
http://ntung-gitb...
favicon
Server Fault (serverfault.com)