[NTLUG:Discuss] apache 2.0 and css
JM5379@sbcglobal.net
JM5379 at sbcglobal.net
Wed May 21 11:58:35 CDT 2003
we're installing a new server (mandrake 9.1 w/apache 2.0), and
we're having a small problem. one of the programmers wants to
keep the css files in the same directory as his cgi; this works
with earlier versions of apache but refuses to properly link to
the css file on this server. here is the code:
#!/usr/bin/perl -w
use CGI::Carp qw( fatalsToBrowser );
use CGI ':all';
$mycss = "bill.css";
print header;
print <<this;
<html>
<head>
<link rel="stylesheet" type="text/css" href="$mycss" />
<!--
<style type="text/css">
.normal
font-family:Arial,sans-serif;font-size:12pt;color:#f00000;font-weight:bold;t
ext-align:left;}
</style>
-->
</head>
<body bgcolor="#ffffff">
<form name="form1" method="post" action="">
<span class="normal">
Hi, Bill!
</span>
</form>
</body>
</html>
this
and here is the css file:
.normal
{font-family:Arial,sans-serif;font-size:12pt;color:#f00000;font-weight:bold;
text-align:left;}
can anyone tell me why this works for earlier versions of apache
when linking, but only works as inline code for apache 2.0? both
files are in /var/www/cgi-bin/
any help is greatly appreciated.
joe
More information about the Discuss
mailing list