-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中做了這一步?