Connecting Tech Pros Worldwide Forums | Help | Site Map

cvswebb css not detected by Apache

Newbie
 
Join Date: Nov 2006
Posts: 4
#1: Nov 20 '06
Hi everyone,

I have both apache and cvswebb installed on Dunbuntu (a simplified Chinese flavour of Ubuntu Linux).

The problem is that in http://localhost/cgi-bin/cvsweb/ which uses apache the icons and colours do not show. This information is contained in /cvsweb/ions/ and /cvsweb/css/cvsweb.css .

There is no problem with the sourcecode generated by the cgi is apparently correct, so if the a page is saved an then opened as a file:// all the colours and icons ahow up clearly. I have tried changing the permissions of the directory /cvsweb/ and everything in the directory but the result is the same.

What should I try next?

John

Below is the source code of a sample page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>testground/hello.txt - diff - 1.4</title>
<meta name="robots" content="nofollow" />
<meta name="generator" content="FreeBSD-CVSweb 3.0.5" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="/cvsweb/css/cvsweb.css" />
</head>
<body class="src">
<table class="navigate-header" width="100%" summary="Navigation">
<tr>
<td>

<a href="/cgi-bin/cvsweb/testground/hello.txt?f=h#rev1.4"><img src="/cvsweb/icons/back.gif" alt="[BACK]" border="0" width="20" height="22" /></a><b>Return to <a href="/cgi-bin/cvsweb/testground/hello.txt?f=h#rev1.4">hello.txt</a> CVS log</b> <img src="/cvsweb/icons/text.gif" alt="[TXT]" border="0" width="20" height="22" /></td> <td style="text-align: right"><img src="/cvsweb/icons/dir.gif" alt="[DIR]" border="0" width="20" height="22" /> <b>Up to <a href="/cgi-bin/cvsweb/?f=h#dirlist">[mycvs]</a> / <a href="/cgi-bin/cvsweb/testground/?f=h#dirlist">testground</a></b></td>
</tr>
</table>
<h3 style="text-align: center">Diff for /testground/hello.txt between versions 1.3 and 1.4</h3>

<table border="0" cellspacing="0" cellpadding="0" width="100%" summary="Diff output">
<tr style="background-color: #ffffff">
<th style="text-align: center; vertical-align: top" width="50%">
<a href="hello.txt?f=h;rev=1.3">version 1.3</a>, 2006/11/18 14:43:09
</th>
<th style="text-align: center; vertical-align: top" width="50%">
<a href="hello.txt?f=h;rev=1.4">version 1.4</a>, 2006/11/18 15:58:18
</th>
</tr>
<tr>
<td width="50%" class="diff-heading">
<b><a href="hello.txt?f=h;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.3#l1">Line&nbsp;1</a></b>

</td>
<td width="50%" class="diff-heading">
<b><a href="hello.txt?f=h;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.4#l1">Line&nbsp;1</a></b>
</td>
</tr>
<tr>
<td class="diff diff-empty">&nbsp;</td>
<td class="diff diff-added">&nbsp;</td>
</tr>
<tr>
<td class="diff diff-same">&nbsp;hi john</td>

<td class="diff diff-same">&nbsp;hi john</td>
</tr>
<tr>
<td class="diff diff-same">&nbsp;hello enoch my son</td>
<td class="diff diff-same">&nbsp;hello enoch my son</td>
</tr>
<tr>
<td class="diff diff-changed">&nbsp;goodbye</td>
<td class="diff diff-changed">&nbsp;goodbye everyone</td>

</tr>
</table>
<hr style="width: 100%" />
<form method="get" action="/cgi-bin/cvsweb/testground/hello.txt.diff">
<div style="float: left">
<label for="f">Diff format:<br />
<input type="hidden" name="r2" value="1.4" />
<input type="hidden" name="r1" value="1.3" />
<select id="f" name="f" onchange="this.form.submit()">
<option value="h" selected="selected">Colored</option>
<option value="H">Long colored</option>
<option value="u">Unified</option>
<option value="c">Context</option>

<option value="s">Side by side</option>
</select></label>
<input type="submit" value="Show" />
</div>
<table style="float: right; border: thin outset" cellspacing="0" cellpadding="1" title="Legend" summary="Legend">
<tr>
<td align="center" class="diff diff-removed">Removed from v.1.3</td>
<td class="diff diff-empty">&nbsp;</td>
</tr><tr class="diff diff-changed">
<td align="center" colspan="2">changed lines</td>

</tr><tr>
<td class="diff diff-empty">&nbsp;</td>
<td align="center" class="diff diff-added">Added in v.1.4</td>
</tr>
</table>
</form>
<br clear="all" />
<hr />
<address><span style="font-size: smaller">FreeBSD-CVSweb &lt;<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>&gt;</span></address>
</body>

</html>
sashi's Avatar
Expert
 
Join Date: Jun 2006
Location: Seremban, Malaysia
Posts: 1,630
#2: Nov 20 '06

re: cvswebb css not detected by Apache


Quote:

Originally Posted by johnkn63

Hi everyone,

I have both apache and cvswebb installed on Dunbuntu (a simplified Chinese flavour of Ubuntu Linux).

The problem is that in http://localhost/cgi-bin/cvsweb/ which uses apache the icons and colours do not show. This information is contained in /cvsweb/ions/ and /cvsweb/css/cvsweb.css .

There is no problem with the sourcecode generated by the cgi is apparently correct, so if the a page is saved an then opened as a file:// all the colours and icons ahow up clearly. I have tried changing the permissions of the directory /cvsweb/ and everything in the directory but the result is the same.

What should I try next?

John

Below is the source code of a sample page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>testground/hello.txt - diff - 1.4</title>
<meta name="robots" content="nofollow" />
<meta name="generator" content="FreeBSD-CVSweb 3.0.5" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="/cvsweb/css/cvsweb.css" />
</head>
<body class="src">
<table class="navigate-header" width="100%" summary="Navigation">
<tr>
<td>

<a href="/cgi-bin/cvsweb/testground/hello.txt?f=h#rev1.4"><img src="/cvsweb/icons/back.gif" alt="[BACK]" border="0" width="20" height="22" /></a><b>Return to <a href="/cgi-bin/cvsweb/testground/hello.txt?f=h#rev1.4">hello.txt</a> CVS log</b> <img src="/cvsweb/icons/text.gif" alt="[TXT]" border="0" width="20" height="22" /></td> <td style="text-align: right"><img src="/cvsweb/icons/dir.gif" alt="[DIR]" border="0" width="20" height="22" /> <b>Up to <a href="/cgi-bin/cvsweb/?f=h#dirlist">[mycvs]</a> / <a href="/cgi-bin/cvsweb/testground/?f=h#dirlist">testground</a></b></td>
</tr>
</table>
<h3 style="text-align: center">Diff for /testground/hello.txt between versions 1.3 and 1.4</h3>

<table border="0" cellspacing="0" cellpadding="0" width="100%" summary="Diff output">
<tr style="background-color: #ffffff">
<th style="text-align: center; vertical-align: top" width="50%">
<a href="hello.txt?f=h;rev=1.3">version 1.3</a>, 2006/11/18 14:43:09
</th>
<th style="text-align: center; vertical-align: top" width="50%">
<a href="hello.txt?f=h;rev=1.4">version 1.4</a>, 2006/11/18 15:58:18
</th>
</tr>
<tr>
<td width="50%" class="diff-heading">
<b><a href="hello.txt?f=h;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.3#l1">Line&nbsp;1</a></b>

</td>
<td width="50%" class="diff-heading">
<b><a href="hello.txt?f=h;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.4#l1">Line&nbsp;1</a></b>
</td>
</tr>
<tr>
<td class="diff diff-empty">&nbsp;</td>
<td class="diff diff-added">&nbsp;</td>
</tr>
<tr>
<td class="diff diff-same">&nbsp;hi john</td>

<td class="diff diff-same">&nbsp;hi john</td>
</tr>
<tr>
<td class="diff diff-same">&nbsp;hello enoch my son</td>
<td class="diff diff-same">&nbsp;hello enoch my son</td>
</tr>
<tr>
<td class="diff diff-changed">&nbsp;goodbye</td>
<td class="diff diff-changed">&nbsp;goodbye everyone</td>

</tr>
</table>
<hr style="width: 100%" />
<form method="get" action="/cgi-bin/cvsweb/testground/hello.txt.diff">
<div style="float: left">
<label for="f">Diff format:<br />
<input type="hidden" name="r2" value="1.4" />
<input type="hidden" name="r1" value="1.3" />
<select id="f" name="f" onchange="this.form.submit()">
<option value="h" selected="selected">Colored</option>
<option value="H">Long colored</option>
<option value="u">Unified</option>
<option value="c">Context</option>

<option value="s">Side by side</option>
</select></label>
<input type="submit" value="Show" />
</div>
<table style="float: right; border: thin outset" cellspacing="0" cellpadding="1" title="Legend" summary="Legend">
<tr>
<td align="center" class="diff diff-removed">Removed from v.1.3</td>
<td class="diff diff-empty">&nbsp;</td>
</tr><tr class="diff diff-changed">
<td align="center" colspan="2">changed lines</td>

</tr><tr>
<td class="diff diff-empty">&nbsp;</td>
<td align="center" class="diff diff-added">Added in v.1.4</td>
</tr>
</table>
</form>
<br clear="all" />
<hr />
<address><span style="font-size: smaller">FreeBSD-CVSweb &lt;<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>&gt;</span></address>
</body>

</html>

Hi John,

Check the absolute path, remember, Linux is case sensitive. Make sure you specify the full path as well as follow the proper case assignment. Good luck & Take care.
Newbie
 
Join Date: Nov 2006
Posts: 4
#3: Nov 20 '06

re: cvswebb css not detected by Apache


Quote:

Originally Posted by sashi

Hi John,

Check the absolute path, remember, Linux is case sensitive. Make sure you specify the full path as well as follow the proper case assignment. Good luck & Take care.

Hi Sashi,
Thank-you.

The paths are correct, as mentioned if one saves the page as something.html then the icons and colours (definied in cvsweb.css) all show up correctly.

John
Reply