subdomain tell me what I did wrong?
-
Currently my subdomain points to my server ip
I have enabled
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_wstunnelconfig.json
"url": "http://forums.yoursite.com", "port": "4567", "database": "redis", "redis": { "host": "127.0.0.1", "port": "6379", "password": "******", "database": "0" } }``` virtualhost.conf ```ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /socket.io/1/websocket ws:/myserverip:4567/socket.io/1/websocket ProxyPassReverse /socket.io/1/websocket ws://myserverip:4567/socket.io/1/websocket ProxyPass /socket.io/ http://myserverip:4567/socket.io/ ProxyPassReverse /socket.io/ http://myserverip:4567/socket.io/ ProxyPass / http://myserverip:4567/ ProxyPassReverse / http://myserverip:4567/ Tried with 127.0.0.1
-
If I remember correctly using
0.0.0.0
worked for my remote proxy's -
This might not be a direct answer to your problem, but did you ever considered to use NGINX?
If not drop me a message, I would greatly assist you to try it out
-
@julian said:
You've followed the guides shown here, right? https://docs.nodebb.org/en/latest/configuring/proxies.html
Other than that I cannot help as my experience lies with nginx as well
yup Apache 2.4 >.<
-
I switched to Nginx 1.6.x and following the reverse proxy for nginx. Doesn't show me where to put the config listed. My conf.d folder is empty
-
@Defaultuser you can create a file named default.conf in conf.d folder and add your config to it.
-
I added a default.conf and put in there. Doesn't work
server {
listen 80;server_name forum.mydomain.com; 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"; }
}
-
@Defaultuser did you restart nginx?
-
I did restart it. Guess it took time because it works now! Thanks everyone. Also thumbs up on the nginx recommendation!