LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-18-2014, 11:05 AM   #1
johndoe777
LQ Newbie
 
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16

Rep: Reputation: Disabled
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.
 
Old 09-18-2014, 11:16 AM   #2
johndoe777
LQ Newbie
 
Registered: Aug 2014
Location: New York City
Distribution: debian wheezy, but I add Kali to my repositories list
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx load balancer mkiler Linux - Server 1 05-10-2009 08:07 AM
nginx load balancer use real ip? VanDaMe Linux - Software 0 09-19-2008 12:58 AM
LXer: Reduce Apache's Load With Nginx On RHEL 5.2 LXer Syndicated Linux News 0 07-23-2008 07:20 PM
How do CSS images load? MicahCarrick Programming 2 01-11-2007 12:37 PM
CSS (stylesheet) question Spudley Programming 1 01-11-2006 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration