Score:0

How to configure nginx for direct access to a path

US flag

Goodnight. I have a website, let's call it "domain.com", it is already online using nginx and with HTTPS certificate, it is basically a static page built using "npm run build" and it has a button that accesses a content in "domain.com/content" and it works perfectly, but if I refresh the page or try to access it directly by typing the URL, nginx returns the 404 error page. I've already tried to configure a "location = /content {" in my "/etc/nginx/nginx.conf" file and it doesn't solve it. From what I find on the internet saying to use declared paths within that location block but my build does not necessarily have the "/content" path but an index.html and a static directory.

Could you give me tips on how I can solve this?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.