---
title: "gitweb on Apache2"
author: "RobinWu"
date: "2012-01-30T15:00:48Z"
tags: []
categories: ["Web前端"]
slug: "gitweb-on-apache2"
draft: false
lastmod: "2012-01-30T15:00:48Z"
id: 1384072
url: "https://robinwu.iteye.com/blog/1384072"
---

安装应用

```java

sudo apt-get install apache2
sudo apt-get install gitweb

```


vi /etc/apache2/conf.d/gitweb

```java

Alias /gitweb /usr/share/gitweb

<Directory /usr/share/gitweb>
  Options FollowSymLinks +ExecCGI
  AddHandler cgi-script .cgi
</Directory>

```


访问

```java

http://localhost:80/gitweb/

```