I'm running an educational forum (https://szkolnecentrum.pl), and, in the first place, I would like to change the names of particular elements. For example, instead of "topic" or "post", I would like to name it "task", "assignment", "answer" or anything like this. More importantly, there is an issue connected to one of the plugins and some part of HTML can be seen in notifications (screen below).
mistake.png
The plugin which is responsible for that error is called nodebb-plugin-question-and-answer-pl (all the plugins don't work except the Chinese one, that's why I would also like to access HTML and try changing it).
www doesn't work
-
site.com - work
www.site.com - dont workHow do I solve this problem?
-
Redirect www. to site.com. They're two separate sub-domains, it's like expecting mail.site.com to redirect to site.com automatically.
Are you using apache or nginx?
-
@a_5mith Routing could not. Nginx.
-
@osman123 What's your nginx config for the routing?
-
server {
listen 80;
server_name site.com;
location / {
proxy_pass http://localhost:4567/;proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; proxy_buffering off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
}
What should I do?
-
@osman123 add this block to your nginx conf to redirect www.site.com to site.com
server { listen 80; server_name www.site.com; return 301 http://site.com$request_uri; }