tachtler:git_centos_7_-_gitweb
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:git_centos_7_-_gitweb [2015/08/07 13:38] – klaus | tachtler:git_centos_7_-_gitweb [2015/08/07 15:36] (aktuell) – [/etc/gitweb.conf] klaus | ||
---|---|---|---|
Zeile 879: | Zeile 879: | ||
# default: # ssh:// | # default: # ssh:// | ||
our @git_base_url_list = qw(http:// | our @git_base_url_list = qw(http:// | ||
+ | http:// | ||
https:// | https:// | ||
Zeile 934: | Zeile 935: | ||
# default: #our @git_base_url_list = qw(git:// | # default: #our @git_base_url_list = qw(git:// | ||
# default: # ssh:// | # default: # ssh:// | ||
- | our @git_base_url_list = qw(http:// | + | our @git_base_url_list = qw(http:// |
+ | http:// | ||
+ | https:// | ||
</ | </ | ||
Zeile 942: | Zeile 945: | ||
* <code perl>our @git_base_url_list = qw(http:// | * <code perl>our @git_base_url_list = qw(http:// | ||
+ | http:// | ||
https:// | https:// | ||
Zeile 980: | Zeile 984: | ||
</ | </ | ||
- | ScriptAlias /git/ / | + | |
+ | ScriptAliasMatch " | ||
+ | info/refs | \ | ||
+ | objects/ | ||
+ | [0-9a-f]{2}/ | ||
+ | pack/ | ||
+ | git-(upload|receive)-pack))$" | ||
+ | / | ||
SetEnv GIT_PROJECT_ROOT /srv/git | SetEnv GIT_PROJECT_ROOT /srv/git | ||
SetEnv GIT_HTTP_EXPORT_ALL | SetEnv GIT_HTTP_EXPORT_ALL | ||
- | DocumentRoot "/ | + | |
+ | < | ||
+ | AddHandler perl-script .cgi | ||
+ | Options -Indexes +FollowSymLinks +ExecCGI | ||
+ | AllowOverride None | ||
+ | # LDAP | ||
+ | AuthType Basic | ||
+ | AuthName " | ||
+ | AuthBasicProvider ldap | ||
+ | AuthLDAPURL " | ||
+ | AuthLDAPBindDN " | ||
+ | AuthLDAPBindPassword " | ||
+ | < | ||
+ | # (enable for LDAP access) | ||
+ | Require ldap-user klaus | ||
+ | </ | ||
+ | PerlResponseHandler ModPerl:: | ||
+ | PerlOptions +ParseHeaders | ||
+ | SetEnv | ||
+ | </ | ||
+ | |||
+ | # DocumentRoot "/ | ||
< | < | ||
Options -Indexes +FollowSymLinks +ExecCGI | Options -Indexes +FollowSymLinks +ExecCGI | ||
Zeile 1016: | Zeile 1048: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | DirectoryIndex gitweb.cgi | ||
ErrorLog logs/ | ErrorLog logs/ | ||
Zeile 1047: | Zeile 1081: | ||
</ | </ | ||
- | ScriptAlias /git/ / | + | |
+ | ScriptAliasMatch " | ||
+ | info/refs | \ | ||
+ | objects/ | ||
+ | [0-9a-f]{2}/ | ||
+ | pack/ | ||
+ | git-(upload|receive)-pack))$" | ||
+ | / | ||
SetEnv GIT_PROJECT_ROOT /srv/git | SetEnv GIT_PROJECT_ROOT /srv/git | ||
SetEnv GIT_HTTP_EXPORT_ALL | SetEnv GIT_HTTP_EXPORT_ALL | ||
- | DocumentRoot "/ | + | |
+ | < | ||
+ | AddHandler perl-script .cgi | ||
+ | Options -Indexes +FollowSymLinks +ExecCGI | ||
+ | AllowOverride None | ||
+ | # LDAP | ||
+ | AuthType Basic | ||
+ | AuthName " | ||
+ | AuthBasicProvider ldap | ||
+ | AuthLDAPURL " | ||
+ | AuthLDAPBindDN " | ||
+ | AuthLDAPBindPassword " | ||
+ | < | ||
+ | # (enable for LDAP access) | ||
+ | Require ldap-user klaus | ||
+ | </ | ||
+ | PerlResponseHandler ModPerl:: | ||
+ | PerlOptions +ParseHeaders | ||
+ | SetEnv | ||
+ | </ | ||
+ | |||
+ | # DocumentRoot "/ | ||
< | < | ||
Options -Indexes +FollowSymLinks +ExecCGI | Options -Indexes +FollowSymLinks +ExecCGI | ||
Zeile 1084: | Zeile 1146: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | DirectoryIndex gitweb.cgi | ||
<Files ~ " | <Files ~ " | ||
Zeile 1108: | Zeile 1172: | ||
<code apache> | <code apache> | ||
... | ... | ||
+ | # ScriptAlias /git/ / | ||
+ | ScriptAliasMatch " | ||
+ | info/refs | \ | ||
+ | objects/ | ||
+ | [0-9a-f]{2}/ | ||
+ | pack/ | ||
+ | git-(upload|receive)-pack))$" | ||
+ | / | ||
+ | ... | ||
+ | |||
+ | DocumentRoot "/ | ||
+ | < | ||
+ | AddHandler perl-script .cgi | ||
+ | Options -Indexes +FollowSymLinks +ExecCGI | ||
+ | AllowOverride None | ||
+ | # LDAP | ||
+ | AuthType Basic | ||
+ | AuthName " | ||
+ | AuthBasicProvider ldap | ||
+ | AuthLDAPURL " | ||
+ | AuthLDAPBindDN " | ||
+ | AuthLDAPBindPassword " | ||
+ | < | ||
+ | # (enable for LDAP access) | ||
+ | Require ldap-user klaus | ||
+ | </ | ||
+ | PerlResponseHandler ModPerl:: | ||
+ | PerlOptions +ParseHeaders | ||
+ | SetEnv | ||
+ | </ | ||
+ | |||
+ | # DocumentRoot "/ | ||
+ | ... | ||
+ | |||
+ | DirectoryIndex gitweb.cgi | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | **__VORHER__**: | ||
+ | * <code apache> | ||
+ | |||
+ | **__NACHHER__**: | ||
+ | * <code apache> | ||
+ | ScriptAliasMatch " | ||
+ | info/refs | \ | ||
+ | objects/ | ||
+ | [0-9a-f]{2}/ | ||
+ | pack/ | ||
+ | git-(upload|receive)-pack))$" | ||
+ | / | ||
+ | |||
+ | Bezeichnet das Skript, welches beim Zugriff auf den [[http:// | ||
+ | |||
+ | **__VORHER__**: | ||
+ | * <code apache> | ||
+ | |||
+ | **__NACHHER__**: | ||
+ | * <code apache> | ||
+ | < | ||
+ | AddHandler perl-script .cgi | ||
+ | Options -Indexes +FollowSymLinks +ExecCGI | ||
+ | AllowOverride None | ||
+ | # LDAP | ||
+ | AuthType Basic | ||
+ | AuthName " | ||
+ | AuthBasicProvider ldap | ||
+ | AuthLDAPURL " | ||
+ | AuthLDAPBindDN " | ||
+ | AuthLDAPBindPassword " | ||
+ | < | ||
+ | # (enable for LDAP access) | ||
+ | Require ldap-user klaus | ||
+ | </ | ||
+ | PerlResponseHandler ModPerl:: | ||
+ | PerlOptions +ParseHeaders | ||
+ | SetEnv | ||
+ | </ | ||
+ | |||
+ | # DocumentRoot "/ | ||
+ | |||
+ | Hier wurde als erstes das '' | ||
+ | Anschließend wir die '' | ||
+ | - Es wird ein **Handler** für das '' | ||
+ | - Die Zugriffsmöglichkeiten werden festgelegt, entscheidend ist hier '' | ||
+ | - Es wird beim Zugriff auf das Verzeichnis, | ||
+ | - Es wird der '' | ||
+ | - Es wird die '' | ||
+ | - Es wird die Umgebungsvariable '' | ||
+ | |||
+ | * <code apache> | ||
+ | |||
+ | Beim Aufruf der URL soll das '' | ||
+ | |||
+ | ===== Aufruf der Web-Anwendung ===== | ||
+ | |||
+ | Nach erfolgreichem **Neustart (restart)** des [[http:// | ||
+ | < | ||
+ | # systemctl restart httpd.service | ||
</ | </ | ||
+ | Kann wie folgt unter nachfolgender URL [[https:// | ||
- | :!: **FIXME Hier geht es weiter... / To be continued...** | + | {{:tachtler:git: |
tachtler/git_centos_7_-_gitweb.1438947496.txt.gz · Zuletzt geändert: 2015/08/07 13:38 von klaus