Closed pestryy closed 6 months ago
I'd like to ask why you want to deploy a copy of Node.js's website somewhere else.
en.html
would be what you're looking for. Since we remove trailing links, you need to us a RewriteRule on NGINX to remove trailing slashes.
In other words /en would be mapped to /en.html
You can see an example of what we're doing around here https://github.com/nodejs/build/blob/main/ansible/www-standalone/resources/config/nodejs.org?plain=1#L124-L150
Я хотел бы спросить, почему вы хотите развернуть копию сайта Node.js где-то еще.
For test
en.html
будет то, что вы ищете. Поскольку мы удаляем трейлинг-ссылки, вам понадобится RewriteRule на NGINX, чтобы удалить трейлинг-шлепки.Другими словами / en будет сопоставлен с /en.html
Вы можете увидеть пример того, что мы делаем здесь https://github.com/nodejs/build/blob/main/ansible/www-standalone/resources/config/nodejs.org?plain=1#L124-L150
Thanks, it is working.
ubuntu 22.04.4 node v20.11.1
run:
I'm trying to run a static site through a web server nginx where can i find index.html?