LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how do I load stylesheet.css in nginx (https://www.linuxquestions.org/questions/linux-server-73/how-do-i-load-stylesheet-css-in-nginx-4175519305/)

johndoe777 09-18-2014 11:05 AM

how do I load stylesheet.css in nginx
 
I don't know where to put my stylesheet.css file so it can be used by my index.html file. I am also wondering if I need to change anything in my nginx.conf file. Also I am not sure if I should be asking this question here or in the programming section. Here is my nginx.conf I just left it in the default settings. I have nginx installed on a debian amd64 computer and am just using it to locally test my html and hopefully css files. When I write a html file by itself without any css files the website loads perfectly but I want to experiment with css as well. I have been putting the html in /usr/share/nginx/www/index.html
and I tried putting the stylesheet.css in the same directory but the rules are not being applied. Tell me if I should show some files here to debug my problem please.

johndoe777 09-18-2014 11:16 AM

Forget it I figured out the problem I was misnaming the files instead of stylesheet.css I had typed css.stylesheet in the html file to reference to.


All times are GMT -5. The time now is 01:40 AM.