NOTE: This guide was tested on Apache v2.2.19 for Windows XP.
It is easy to to host a fossil repository via CGI with Apache for Windows XP. Follow these steps:
- Install Fossil to a local directory and add the directory to the PATH environment variable.
- Install the Apache web server.
- In the Apache install path, find the cgi-bin folder.
- Create a new .cgi file that will be used to access a local Fossil repository; e.g. example.cgi
- Edit the new file as follows:
#!fossil.exe repository: C:\path_to_repository\example.fossil
- Save the changes to the file and check that the repository is accessible at the following URL: http://hostname/cgi-bin/example.cgi