How do I enable the css and favicon on my server using nginx

Avatar amar_101 4 months ago

I've uploaded my website onto the nginx server but I can't see the css or favicon on the website even though it has been loaded.

This is a simple example of the file below:

<link href="style.css" rel="stylesheet" type="text/css">

1 Reply

If you recently added the file but it's not appearing, you might need to refresh your browser's cache.

If it still doesn't appear, then your web server might not be configured to load it correctly. Can you post your virtual host config here? Providing the domain name may also help us troubleshoot.


Please enter an answer

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] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct