I am not able to remove 4567 from http://subdomain:4567
How to do it ?
Steps I am following
(a) Reading from here https://docs.nodebb.org/configuring/proxies/apache/
(b) Making subdomain.conf , keeping it inside /etc/apache2/conf.d/includes
and attaching this line Include /etc/apache2/conf.d/includes/subdomain.conf into httpd.conf
(c) Changing URL of config.json inside NodeBB folder to http://subdomain.conf
Code which I am using in subdomain.conf is as follows :
<VirtualHost *:80>
ServerName www.sub-domain.com
RequestHeader set X-Forwarded-Proto "http"
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
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 / http://127.0.0.1:4567/
ProxyPassReverse / http://127.0.0.1:4567/
</VirtualHost>