|
发表于 2009-11-22 18:37:19
|
显示全部楼层
apache
我用了macro模块
比如这个是gitweb macro
<Macro gitweb $host>
<IfModule alias_module>
Alias /gitweb/ /var/www/$host/htdocs/gitweb/
Alias /git/ /var/www/$host/htdocs/git/
</IfModule>
<Directory "/var/www/$host/htdocs/gitweb">
Options +ExecCGI +Indexes
Order allow,deny
Allow from all
DirectoryIndex gitweb.cgi
SetEnv GITWEB_CONFIG "/etc/git/config.pl"
AddHandler cgi-script .cgi
SecRuleInheritance Off
</Directory>
<Directory "/var/www/$host/htdocs/git">
Dav On
SecRuleInheritance Off
</Directory>
</Macro> |
|