-2
我试图在我的Nginx服务器上安装GitList(http://gitlist.org/)。但是,安装的部分是,我改变用下面的代码Apache的配置文件:Nginx上的Mod_rewrite?
<Directory "/var/www/html">
# Other lines omitted
AllowOverride All
# Other lines omitted
</Directory>
此外,这还需要在.htaccess
文件GitList文件夹中:
<IfModule mod_rewrite.c>
Options -MultiViews +SymLinksIfOwnerMatch
RewriteEngine On
#RewriteBase /path/to/gitlist/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L,NC]
</IfModule>
<Files config.ini>
order allow,deny
deny from all
</Files>
怎么办我在Nginx中做了这一步?