Testing subfolder installation
-
Hello,
I am trying to make this work on nginx 1.6.0 but I keep getting gateway timeout 504,
I have the nodebb related config here:
location ^~ /forum { 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://172.0.0.1:4567/forum; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
and for the config.json looks like :
{ "base_url": "http://127.0.0.1/forum", "port": "4567", "secret": "86f2b377-a251-4e4a-8fbf-fce284473f3b", "bind_address": "0.0.0.0", "database": "redis", "redis": { "host": "127.0.0.1", "port": "6379", "password": "password", "database": "0" }, "bcrypt_rounds": 12, "upload_path": "/public/uploads", "use_port": false, "relative_path": "/forum" }
however if I run curl http://127.0.0.1:4567/forum/ the site shows correctly.
Anyone can give me a hint?Thanks in advance
-
Your proxy pass says 172.0.0.1:4567/forum, it should be 127.0.0.1:4567/forum
-
@Peter-Zoltan-Keresztes Good stuff.
Copyright © 2024 NodeBB | Contributors