I have some problems with nginx. I would like nodebb to work on "http://forum.domainname.com". i had followed the ubuntu installation tutorial. But, this is how nodebb is working now:
http://forum.domainname.com -> redirect to https://forum.domainname.com/ -> timeout ... (i don't know why https)
http://forum.domainname.com:4567 -> work
http://domainname.com:4567 -> work
EDIT: http://domainname.com -> redirect to http://www.domainname.com/ -> work
config.json
{
"url": "http://forum.domainname.com",
"secret": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "nodebb",
"password": "mypasswd",
"database": "nodebb",
"uri": ""
},
"port": "4567"
}
/etc/nginx/sites-available/forum.domainname.com
server {
listen 80;
listen [::]:80;
server_name forum.domainname.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
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";
}
}
Thank you in advance for your help