Using Css or Image files with Apache
lazarus / 1-Linux
----------------------------------------------------------------------
sandeep_c24 · 2009-03-15 05:20
Hi
How do I use css or image file in a apache module(not cgi). I have
tried giving the url of the default.css
but I can't see the page using this style sheet. Where should I be
putting the css file and what else should be done for this to work?
Sandeep
----------------------------------------------------------------------
bobo · 2009-03-17 04:10
It does not matter if it is CGI or apache module.
The CSS file (default.css in your case) needs to be defined with a
path relative to the web server home page.
For example in the web server document root:
or under a "stylesheets" subdirectory within the web server document
root:
So the visitor's web browser knows where to find it on the web server.
Same idea for image files:
----------------------------------------------------------------------
sandeep_c24 · 2009-03-17 05:58
Hi bobo
Thanks for that. That worked fine.
Sandeep