How do I load CSS and javascript to my node application

I am new to linode and server installation. I just uploaded my node application but My CSS files didnot load. tried searching but there seems to be little help concerning why my css is not loading. I actually dont know what to change in the default file of nhinx to make css work, some help please

2 Replies

Linode Staff

Hi there,

Are you receiving any errors? Sharing that might help us better figure out where the problem is coming from.

However, I did find this post on StackOverflow that might be related to your problem; Nginx fails to load css files

Sometimes failure to load CSS is due to either permissions or code that looks for the file in the wrong directory.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct