Bonjour All,<br>
je viens d'installer cvsweb tout à l'air de bien marché quand je tape
<a href="http://127.0.0.1/cvsweb">http://127.0.0.1/cvsweb</a> la page s'affiche bien avec les répertoires
icons et css.<br>
j'ai installé rancid tout marche bien mais comment fait pour qu'on
puisse consulter les config via le cvsweb quand je tape
<a href="http://127.0.0.1/cgi-bin/cvsweb">http://127.0.0.1/cgi-bin/cvsweb</a> j'ai not found the requested URL
/cgi-bin/cvsweb was not found on this server. aidez moi s'ils vous
plaît.<br><br>le contenu de /etc/cvsweb.conf<br><br><br># Show a form for setting options in the directory view?<br>#<br>$edit_option_form = 1;<br><br># Show last changelog message for subdirectories?<br># The current implementation makes many assumptions and may show the<br>
# incorrect file at some times. The main assumption is that the last<br># modified file has the newest filedate. But some CVS operations<br># touch the file even when a new version isn't checked in, and TAG<br># based browsing essentially puts this out of order unless the last<br>
# checkin was on the same tag as you are viewing.<br># Enable this if you like the feature, but don't rely on correct results.<br>#<br>#$show_subdir_lastmod = 1;<br><br># Show CVS log when viewing file contents?<br>#<br>
$show_log_in_markup = 1;<br><br># Preformat when viewing file contents? This should be turned off<br># when you have files in the repository that are in a multibyte<br># encoding which uses HTML special characters ([<>&"]) as part of a<br>
# multibyte character. (such as iso-2022-jp, ShiftJIS, etc.)<br># Otherwise those files will get screwed up in markup.<br>#<br># Note: enscript(1) highlighting is preferred over the built-in preformatting,<br># ie. this has no effect if $allow_enscript is true and enscript can highlight<br>
# the file.<br>#<br>#$preformat_in_markup = 1;<br><br># Default tab width used to expand tabs to spaces in various HTMLized views.<br># Note that CVSweb scans the first few lines of sources for some common editor<br># directives controlling the tab width. It uses the value from them if found,<br>
# falling back to the value of $tabstop if not. Default: 8.<br>#<br>#$tabstop = 4;<br><br># If you wish to display absolute times in your local timezone,<br># then define @mytz and fill in the strings for your standard and<br>
# daylight time. Note that you must also make sure the system<br># timezone is correctly set.<br>#<br>#@mytz=("EST", "EDT");<br><br># CVSweb is friendly to caches by sending the HTTP Last-Modified<br># header corresponding to the sent content. In the case of a<br>
# checkout, this may require running rcslog on the file solely for the<br># purpose of retrieving the timestamp to be sent. If you have a slow<br># server, you may want to turn this off for a small performance gain.<br>#<br>
$use_moddate = 1;<br><br># Maximum number of filenames to pass to rlog(1) in one command.<br># If you see "Failed to spawn GNU rlog" errors with directories containing<br># lots of files, experiment by setting this to different values and see if<br>
# the error still occurs. A good value to start from would be eg. 200.<br># Just comment this out if you're not bitten by the problem.<br>#<br>#$file_list_len = 200;<br><br># Allow graphical representations of file revisions and branches with CvsGraph?<br>
#<br>$allow_cvsgraph = $CMD{cvsgraph} ? 1 : 0;<br><br># Path to the CvsGraph configuration file. Only used if $allow_cvsgraph<br># is true. Leave this empty or comment it out to make cvsgraph(1) use its<br># default configuration file. Note that CVSweb will override some of the<br>
# settings in the configuration file with command line options, see<br># doGraph() and doGraphView() in cvsweb.cgi for details.<br>#<br>#$cvsgraph_config = "/etc/cvsgraph.conf";<br><br># URL to the CVSHistory script. This should be absolute (but does not need<br>
# to include the host and port if the script is on the same server as<br># CVSweb).<br>#$cvshistory_url = "/cgi-bin/cvshistory.cgi";<br><br># Whether to allow downloading a tarball or a zip of the current directory.<br>
# While downloading of the entire repository is disallowed, depending on<br># the directory this may take a lot of time and disk space. For some CVS<br># versions, the user account running CVSweb needs write access to<br>
# CVSROOT/val-tags. See also the tar, gzip and zip options below.<br>#<br>#$allow_tar = (($CMD{tar} && $CMD{gzip}) || $CMD{zip}) ? 1 : 0;<br><br># Options to pass to tar(1).<br># For example: @tar_options = qw(--ignore-failed-read);<br>
# GNU tar has some useful options against unexpected errors.<br># Other useful options include "--owner=0" and "--group=0", see<br># the tar(1) (or gtar(1)) manpage for details.<br>#<br>@tar_options = qw();<br>
<br># Options to pass to gzip(1) when compressing a tarball to download.<br># For example: @gzip_options = qw(-3);<br># Try lower compression level than 6 (default) if you want faster<br># compression, or higher for better compression.<br>
#<br>@gzip_options = qw();<br><br># Options to pass to zip(1) when compressing a zip archive to download.<br># For example: @zip_options = qw(-3);<br># Try lower compression level than 6 (default) if you want faster<br># compression, or higher for better compression.<br>
#<br>@zip_options = qw(-q);<br><br># Options to pass to cvs(1).<br># For cvs versions 1.11 to 1.11.6 (broken in < 1.11, removed in 1.11.7), you<br># can use the '-l' option to prevent cvs from writing to the history file.<br>
# For other cvs versions, either suppress history logging by using the<br># LogHistory parameter in CVSROOT/config or make sure that the CVSweb user<br># can read and write to CVSROOT/history.<br># FreeBSD's and OpenBSD's cvs(1) has long since supported -R (read only access<br>
# mode) option, which considerably speeds up checkouts over NFS. For other<br># platforms, the -R option and the CVSREADONLYFS environment variable are<br># available in cvs >= 1.12.1. A similar effect is provided by -u on NetBSD.<br>
#<br>@cvs_options = qw(-f);<br>push @cvs_options, '-R' if ($^O eq 'freebsd' || $^O eq 'openbsd');<br>push @cvs_options, '-u' if ($^O eq 'netbsd');<br># Only affects cvs >= 1.12.1, but doesn't hurt older ones.<br>
$ENV{CVSREADONLYFS} = 1 unless exists($ENV{CVSREADONLYFS});<br><br># Options to pass to the 'cvs annotate' command, usually the normal<br># @cvs_options are good enough here.<br># To make annotate work against a read only repository, add -n, ie.:<br>
# @annotate_options = (@cvs_options, '-n');<br>#<br>@annotate_options = @cvs_options;<br><br># Options to pass to rcsdiff(1).<br># Probably the only useful one here is -q (suppress diagnostic output).<br>#<br>@rcsdiff_options = qw(-q);<br>
<br># Enables syntax highlighting using GNU Enscript if set.<br># You will need GNU Enscript version 1.6.3 or newer for this to work.<br>#<br>#$allow_enscript = $CMD{enscript} ? 1 : 0;<br><br># Options to pass to enscript(1).<br>
# Do not set the -q, --language, -o or --highlight options here.<br># Most useful styles are probably emacs, emacs_verbose and msvc.<br>#<br>@enscript_options = qw(--style=emacs --color=1);<br><br># Enscript highlight rule to filename regex mappings. The set of useful<br>
# mappings depends on what highlight rules the system has installed.<br>#<br>%enscript_types =<br> (<br> 'ada' => qr/\.ad(s|b|a)$/o,<br> 'asm' => qr/\.[Ss]$/o,<br> 'awk' => qr/\.awk$/o,<br>
'bash' => qr/\.(bash(_profile|rc)|inputrc)$/o,<br> 'c' => qr/\.(c|h)$/o,<br> 'changelog' => qr/^changelog$/io,<br> 'cpp' => qr/\.(c\+\+|C|H|cpp|cc|cxx)$/o,<br>
'csh' => qr/\.(csh(rc)?|log(in|out)|history)$/o,<br> 'elisp' => qr/\.e(l|macs)$/o,<br> 'fortran' => qr/\.[fF]$/o,<br> 'haskell' => qr/\.(l?h|l?g)s$/o,<br>
'html' => qr/\.x?html?$/o,<br> 'idl' => qr/\.idl$/o,<br> 'inf' => qr/\.inf$/io,<br> 'java' => qr/\.java$/o,<br> 'javascript' => qr/\.(js|pac)$/o,<br>
'ksh' => qr/\.ksh$/o,<br> 'm4' => qr/\.m4$/o,<br> 'makefile' => qr/(GNU)?[Mm]akefile(?!\.PL\b)|\.(ma?ke?|am)$/o,<br> 'matlab' => qr/\.m$/o,<br>
'nroff' => qr/\.man$/o,<br> 'pascal' => qr/\.p(as|p)?$/io,<br> 'perl' => qr/\.p(m|(er)?l)$/io,<br> 'postscript' => qr/\.e?ps$/io,<br> 'python' => qr/\.py$/o,<br>
'rfc' => qr/\b((rfc|draft)\..*\.txt)$/o,<br> 'scheme' => qr/\.(scm|scheme)$/o,<br> 'sh' => qr/\.sh$/o,<br> 'skill' => qr/\.il$/o,<br> 'sql' => qr/\.sql$/o,<br>
'states' => qr/\.st$/o,<br> 'synopsys' => qr/\.s(cr|yn(th)?)$/o,<br> 'tcl' => qr/\.tcl$/o,<br> 'tcsh' => qr/\.tcshrc$/o,<br> 'tex' => qr/\.tex$/o,<br>
'vba' => qr/\.vba$/o,<br> 'verilog' => qr/\.(v|vh)$/o,<br> 'vhdl' => qr/\.vhdl?$/o,<br> 'vrml' => qr/\.wrl$/o,<br> 'wmlscript' => qr/\.wmls(cript)?$/o,<br>
'zsh' => qr/\.(zsh(env|rc)|z(profile|log(in|out)))$/o,<br> );<br><br># Troubleshooting: in case of problems, setting this to 1 will cause more<br># error output into your web server error log. Under normal operation,<br>
# this should be set to 0 or commented out.<br>#<br>#$DEBUG = 1;<br><br># Enable this to let CVSweb load extra configuration files from the "conf.d"<br># subdirectory of the directory this file is located in. This enables site<br>
# specific configuration without having to modify this "master" configuration<br># file (except for enabling this functionality below :)<br>#<br>if (0) {<br> my $confdir = catdir(dirname(__FILE__), 'conf.d');<br>
if (opendir(CONFD, $confdir)) {<br> my @files = sort(map(catfile($confdir, $_), readdir(CONFD)));<br> close(CONFD);<br> for my $conffile (grep(-f && -r _, @files)) {<br> ($conffile) = ($conffile =~ /(.+\.conf)$/) or next;<br>
do "$conffile" or config_error($conffile, $@);<br> }<br> }<br>}<br><br>1;<br><br><br>