Something went wrong. Try again.
Git fork
Something went wrong. Try again.
2.4 kB 70 lines
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071GIT web Interface=================
From the git version 1.4.0 gitweb is bundled with git.
Build time gitweb configuration-------------------------------There are many configuration variables which affect building gitweb (amongothers creating gitweb.cgi out of gitweb.perl by replacing placeholders suchas `++GIT_BINDIR++` by their build-time values).
Building and installing gitweb is described in gitweb's INSTALL file(in 'gitweb/INSTALL').
Runtime gitweb configuration----------------------------Gitweb obtains configuration data from the following sources in thefollowing order:
1. built-in values (some set during build stage),2. common system-wide configuration file (`GITWEB_CONFIG_COMMON`, defaults to '/etc/gitweb-common.conf'),3. either per-instance configuration file (`GITWEB_CONFIG`, defaults to 'gitweb_config.perl' in the same directory as the installed gitweb), or if it does not exists then system-wide configuration file (`GITWEB_CONFIG_SYSTEM`, defaults to '/etc/gitweb.conf').
Values obtained in later configuration files override values obtained earlierin above sequence.
You can read defaults in system-wide GITWEB_CONFIG_SYSTEM from GITWEB_CONFIGby adding
read_config_file($GITWEB_CONFIG_SYSTEM);
at very beginning of per-instance GITWEB_CONFIG file. In this casesettings in said per-instance file will override settings fromsystem-wide configuration file. Note that read_config_file checksitself that the $GITWEB_CONFIG_SYSTEM file exists.
The most notable thing that is not configurable at compile time are theoptional features, stored in the '%features' variable.
Ultimate description on how to reconfigure the default features settingin your `GITWEB_CONFIG` or per-project in `project.git/config` can be foundas comments inside 'gitweb.cgi'.
See also gitweb.conf(5) manpage.
Web server configuration------------------------Gitweb can be run as CGI script, as legacy mod_perl application (usingModPerl::Registry), and as FastCGI script. You can find some simple examplesin "Example web server configuration" section in INSTALL file for gitweb (ingitweb/INSTALL).
See "Webserver configuration" and "Advanced web server setup" sections ingitweb(1) manpage.
AUTHORS-------Originally written by: Kay Sievers <kay.sievers@vrfy.org>
Any comment/question/concern to: Git mailing list <git@vger.kernel.org>