Ticket Change Details
Not logged in
Overview

Artifact ID: 0330a84054873da2943e5236bec7eac761533a72
Ticket: 74782e5f7cf9c3b3430c1b6debbc57c20fe7f3f8
auto-discovery of a repository from a webpage
User & Date: anonymous 2010-03-19 06:48:33
Changes

  1. Appended to comment:
    
    
    <hr><i>anonymous added on 2010-03-19 06:48:33:</i><br>
    IMO, it is not a problem of fossil. Use RewriteEngine or whatever else. It would be enough. My Apache .htaccess is like:
    <verbatim>
    # You don't need this part:
    <FilesMatch "\.repo$">
      Options +ExecCGI
      AddHandler cgi-script .repo
      RewriteEngine Off
    </FilesMatch>
    
    # But you need this (you might want to replace foo.repo with /cgi-bin/foo.cgi):
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} ^Fossil/\[[a-z0-9]{10}\]
    RewriteRule ^(.*) /foo.repo/$1 [L]
    </verbatim>