@import css

I'm currently trying to set up my mac osx 10.3 to serve pages locally.  Do i have to do anything to my httpd.conf file for @import rules to import external css documents?  I've read something about setting it up for server side includes, but i'm not sure @import is similar.  anyway, @import isn't working (inline is), and i have no idea why.  works everywhere else.

here's index.htm:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
            <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
            <title>Welcome to ACA</title>

            <style type="text/css" media="screen">@import url(css/layout.css);</style>

body {background-color: red;}

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As far as i know you don't need to set-up anything in the httpd.conf.
Could it be that the path is not readable? What happens when you enter the url of the stylesheet into the address bar of the browser? Do you get the stylesheet?
The only thing that i can think of which could be influencing the stylesheet is the default type of documents
More info about the default type http://httpd.apache.org/docs/mod/core.html#defaulttype

bradnobleAuthor Commented:
Thanks for your response.  When I enter the URL for the stylesheet, I get an Apache "Forbidden" message, where I don't have permission to access the file on this server.  Strange.  Any thoughts?
Could be that the rights on the file/dir are not correct. The dir and file needs to be accessible by the apache user. You could set the rights on the file and dir to have execute and read rights for everyone. The file should be accessible then.
On unix this corresponds with num val 755
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

bradnobleAuthor Commented:
patrick, where in osx do i make this change you're suggesting?  in the terminal?  or, system prefs?  (i'd like all files and dirs in and below my Web Server > Documents (root) to have execute, read and write -- this is my dev server.)

as far as i understand osx is practicly BSD so you could do it via a terminal session.
Do the following:
  open a terminal
  go to the directory where you files are located (cd <dir>)
  change the rights with chmod -R 755 *
  chmod is a command to change the rights on files (change mode), 755 tells it to use as mask owner everything (7) group read and execute (5) other read and execute (5). The -R makes the command recursive so it will travel all dirs and change the rights accordingly.

Another option would be to open a graphical file manager and do it from there.

If you want more info about the chmod you could probably type in a terminal "man chmod"


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bradnobleAuthor Commented:
patrick -

bless you, man.  this seems to be the fix i needed.  thanks!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.