<b>NOTE: </b>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:

<ol>
<li>Install Fossil to a local directory and add the directory to the PATH environment variable.</li>
<li>Install the Apache web server.</li>
<li>In the Apache install path, find the <i>cgi-bin</i> folder.</li>
<li>Create a new <i>.cgi</i> file that will be used to access a local Fossil repository; e.g.
<li>Edit the new file as follows:
<pre>
<code>
#!fossil.exe
repository:
</code>
</pre>
<li>Save the changes to the file and check that the repository is accessible at the following URL:
</ol>