Information Technology Reference
In-Depth Information
Figure 11-3 . The main page of 03-10 repository presented by Gitweb
Hint Take a good look at Figure 11-3 . Gitweb doesn't provide URLs to clone a re-
pository. You can only browse them with a web interface.
How It Works
You want to serve web pages by the apache daemon on the guest machine. To do it
configure forwarding for port 8080:
config.vm.network :forwarded_port, guest: 80, host: 8080
The second option in Vagrantfile , which is:
config.vm.synced_folder "c:\\some\\where\\git-recipes",
"/pub/git"
turns on synchronization of the git-recipes directory on the host machine (i.e.,
your Windows system) with /pub/git on the guest machine (i.e., virtual Ubuntu sys-
tem).
By default, Gitweb scans the /var/cache/git directory for repositories. That's
why you need to change the project root in the /etc/gitweb.conf file. We set it to
the directory git-recipes on the host operating system. This is why we need to
synchronize /pub/git on the guest machine with git-recipes on host machine.
Default configuration for apache is stored in /etc/apache2/sites-avail-
able/default . That's where you should look to change the configuration of the
web server. You may need it to configure url rewriting rules.
11-9. Using a cgit CGI application
Problem
Search WWH ::




Custom Search