Skip to content

Support for ScriptAliasMatch #480

@antaflos

Description

@antaflos

Much like #479 there is a need to support ScriptAliasMatch in addition to simple ScriptAlias.

Example (quite complex):

# Make Gitolite (more specifically the suexec-wrapper) serve
# everything that the git-http-backend can handle and leave the
# rest to Gitweb.
ScriptAliasMatch \
    "(?x)^/git/(.*/(HEAD | \
    info/refs | \
    objects/(info/[^/]+ | \
    [0-9a-f]{2}/[0-9a-f]{38} | \
    pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
    git-(upload|receive)-pack))$" \
    /var/www/bin/gitolite-suexec-wrapper.sh/$1

ScriptAlias /git /var/www/gitweb/index.cgi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions