LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 736|回复: 3

老大请进

[复制链接]
发表于 2009-11-22 18:03:11 | 显示全部楼层 |阅读模式
gentoo-cn上各个组件对应的URL设置得很漂亮,
请共享一下gentoo-cn.org的apache/lighttpd配置文件,谢谢。 :p
发表于 2009-11-22 18:35:13 | 显示全部楼层
<VirtualHost *:80>
        ServerName www.gentoo-cn.org
        ServerAlias gentoo-cn.org
        Use vhost localhost
        Use mediawiki localhost
        Use cgiirc localhost
        Use gitweb localhost
        Use gorg localhost
</VirtualHost>

<VirtualHost *:80>
        ServerName zhangle.is-a-geek.org
        Use vhost zhangle.is-a-geek.org
</VirtualHost>

<VirtualHost *:80>
        ServerName planet.gentoo-cn.org
        Use vhost planet
</VirtualHost>
回复 支持 反对

使用道具 举报

发表于 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>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-24 01:54:56 | 显示全部楼层
先谢谢老大

另,传闻 nginx不错的说,老大试试用它替换apache?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表