@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!