652bd9e1-81b6-4f6f-8712-87ca1fd75319-image.png
I try to reinstall, run the ```
./nodebb setup
My domain is http:xxx.com, I want to access http:xxx.com/Bw3lRApMc4.txt for verfication. Which folder am I supposed to upload this Bw3lRApMc4.txt file?
I tried to set up the nginx:
server {
listen 80;
server_name xxx.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";
}
location /Bw3lRApMc4.txt {
alias /nodebb/Bw3lRApMc4.txt;
}
}
It shows
403 forbidden
instead of file does not exist
. I think I can access the file, but it is forbidden...
@sharonyue said in where am I supposed to upload if I want to access nodebb.org/xxx.html:
My domain is http:xxx.com, I want to access http:xxx.com/Bw3lRApMc4.txt for verfication. Which folder am I supposed to upload this Bw3lRApMc4.txt file?
I tried to set up the nginx:
[snip]
location /Bw3lRApMc4.txt { alias /nodebb/Bw3lRApMc4.txt; }
Is the alias path the actual path? I presume nginx has access to that dir? I might suggest stashing that file in a dedicated dir of it's own rather than have misc. stuff in your nodebb root dir. Else maybe /nodebb/public.
Here is the snippet I use for dehydrated:
location ^~ /.well-known/acme-challenge {
alias /var/www/dehydrated;
}
The caret tilde (^~) modifier turns off regex matching. No modifier at all means location is interpreted as a prefix match. In any case, I am unsure what your config at large is and what you are trying to accomplish but I suspect you need to tweak the modifier on you location statement, e.g. maybe an equals sign (=)??
Here's a link to the nginx location directive docs. Adapt accordingly?
This just a quick look. Not an nginx guru and I need some coffee so I may have missed the obvious?
Good luck!