nginx as reverse proxy
-
I've just reconfigure nodebb to listen on the public address:
http://nodebb.matt1206.co.uk:4567/ - works fine, can post, create new categories etc.
http://nodebb.matt1206.co.uk - loads, can browse, but can't post, create categories
upstream nodejs {
server 188.226.168.176:4567;
}server {
listen 188.226.168.176:80;
server_name nodebb.matt1206.co.uk;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://nodejs; proxy_redirect off; #Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
}
-
@Matt-Worthington said:
http://nodebb.matt1206.co.uk - loads, can browse, but can't post, create categories
Well, that's progress. At least you know it works - partially. Check your Nginx error log for clues to what's happening when you try to post or create categories. Also check your browser's Web console.
-
@planner That has always been the case. The site has always been loading. Same for this one (http://sheffieldfitnessforum.co.uk/)
Web console:
Error logs:
2014/06/05 08:20:37 [error] 29679#0: *15 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 195.188.150.130, server: sheffieldfitnessforum.co.uk, request: "GET /socket.io/1/xhr-polling/kxJx3zLShgZbkiM5u12C?t=1401952789255 HTTP/1.1", upstream: "http://127.0.0.1:4567/socket.io/1/xhr-polling/kxJx3zLShgZbkiM5u12C?t=1401952789255", host: "sheffieldfitnessforum.co.uk", referrer: "http://sheffieldfitnessforum.co.uk/admin/index"
2014/06/05 08:22:08 [error] 29679#0: *132 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 195.188.150.130, server: sheffieldfitnessforum.co.uk, request: "GET /socket.io/1/xhr-polling/DBYXQx5k-LBDONRXu12E?t=1401952880125 HTTP/1.1", upstream: "http://127.0.0.1:4567/socket.io/1/xhr-polling/DBYXQx5k-LBDONRXu12E?t=1401952880125", host: "sheffieldfitnessforum.co.uk", referrer: "http://sheffieldfitnessforum.co.uk/admin/index" -
@julian said:
@Matt-Worthington Earlier, I did manage to register, although I didn't try posting. Seemed to be working fine for me.
Latest version of NodeBB, or 0.4.3?
You are running NodeBB v0.4.3.
You are up-to-dateIf you go here : http://sheffieldfitnessforum.co.uk/register
error log from trying to register
2014/06/05 16:24:52 [error] 16521#0: *1729 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 195.188.150.130, server: sheffieldfitnessforum.co.uk, request: "GET /socket.io/1/xhr-polling/mjmVf8jqrKdPP4u79DC2?t=1401981844875 HTTP/1.1", upstream: "http://127.0.0.1:4567/socket.io/1/xhr-polling/mjmVf8jqrKdPP4u79DC2?t=1401981844875", host: "sheffieldfitnessforum.co.uk", referrer: "http://sheffieldfitnessforum.co.uk/register" -
I can post if I use this URL : http://sheffieldfitnessforum.co.uk:4567/
I can't post if I use this URL : http://sheffieldfitnessforum.co.uk/ -
@Matt-Worthington Seems to be working fine... so at the very least perhaps we can rule out a problem on the server end?
-
Just got home, and it's working just as expected. Must be something VirginMedia is doing, as they are the ISP we use at work.