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.dt d">
<html>
<head>
<title>testgrou nd/hello.txt - diff - 1.4</title>
<meta name="robots" content="nofoll ow" />
<meta name="generator " content="FreeBS D-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="Naviga tion">
<tr>
<td>
<a href="/cgi-bin/cvsweb/testground/hello.txt?f=h#r ev1.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#r ev1.4">hello.tx t</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">t estground</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="backgrou nd-color: #ffffff">
<th style="text-align: center; vertical-align: top" width="50%">
<a href="hello.txt ?f=h;rev=1.3">v ersion 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">v ersion 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&n bsp;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&n bsp;1</a></b>
</td>
</tr>
<tr>
<td class="diff diff-empty"> </td>
<td class="diff diff-added"> </td>
</tr>
<tr>
<td class="diff diff-same"> hi john</td>
<td class="diff diff-same"> hi john</td>
</tr>
<tr>
<td class="diff diff-same"> hel lo enoch my son</td>
<td class="diff diff-same"> hel lo enoch my son</td>
</tr>
<tr>
<td class="diff diff-changed"> goodbye</td>
<td class="diff diff-changed"> 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="selec ted">Colored</option>
<option value="H">Long colored</option>
<option value="u">Unifi ed</option>
<option value="c">Conte xt</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">Remove d from v.1.3</td>
<td class="diff diff-empty"> </td>
</tr><tr class="diff diff-changed">
<td align="center" colspan="2">cha nged lines</td>
</tr><tr>
<td class="diff diff-empty"> </td>
<td align="center" class="diff diff-added">Added in v.1.4</td>
</tr>
</table>
</form>
<br clear="all" />
<hr />
<address><spa n style="font-size: smaller">FreeBS D-CVSweb <<a href="mailto:fr eebsd-cvsweb@FreeBSD. org">freebsd-cvsweb@FreeBSD. org</a>></span></address>
</body>
</html>
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.dt d">
<html>
<head>
<title>testgrou nd/hello.txt - diff - 1.4</title>
<meta name="robots" content="nofoll ow" />
<meta name="generator " content="FreeBS D-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="Naviga tion">
<tr>
<td>
<a href="/cgi-bin/cvsweb/testground/hello.txt?f=h#r ev1.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#r ev1.4">hello.tx t</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">t estground</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="backgrou nd-color: #ffffff">
<th style="text-align: center; vertical-align: top" width="50%">
<a href="hello.txt ?f=h;rev=1.3">v ersion 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">v ersion 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&n bsp;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&n bsp;1</a></b>
</td>
</tr>
<tr>
<td class="diff diff-empty"> </td>
<td class="diff diff-added"> </td>
</tr>
<tr>
<td class="diff diff-same"> hi john</td>
<td class="diff diff-same"> hi john</td>
</tr>
<tr>
<td class="diff diff-same"> hel lo enoch my son</td>
<td class="diff diff-same"> hel lo enoch my son</td>
</tr>
<tr>
<td class="diff diff-changed"> goodbye</td>
<td class="diff diff-changed"> 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="selec ted">Colored</option>
<option value="H">Long colored</option>
<option value="u">Unifi ed</option>
<option value="c">Conte xt</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">Remove d from v.1.3</td>
<td class="diff diff-empty"> </td>
</tr><tr class="diff diff-changed">
<td align="center" colspan="2">cha nged lines</td>
</tr><tr>
<td class="diff diff-empty"> </td>
<td align="center" class="diff diff-added">Added in v.1.4</td>
</tr>
</table>
</form>
<br clear="all" />
<hr />
<address><spa n style="font-size: smaller">FreeBS D-CVSweb <<a href="mailto:fr eebsd-cvsweb@FreeBSD. org">freebsd-cvsweb@FreeBSD. org</a>></span></address>
</body>
</html>
Comment