Rewrite problem? http://localhost/gitlist/ fails with 404. http://localhost/gitlist/index.php works

Skip to first unread message


Oct 31, 2015, 5:57:20 AM10/31/15
to GitList

Wonder what I am doing wrong, but for some reason the default index is rewritten wrongly and fails to to work with gitlist. 

I have a apache 2.4 like this:

LogLevel alert rewrite:trace3

Alias /gitlist "/var/www/gitlist/"

<Directory /var/www/gitlist >

Options FollowSymLinks

        AllowOverride All


---- .htaccess (Set  the RewriteBase) 

<IfModule mod_rewrite.c>

    Options -MultiViews +SymLinksIfOwnerMatch

    RewriteEngine On

    RewriteBase /var/www/gitlist

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^(.*)$ index.php/$1 [L,NC]


<Files config.ini>

    order allow,deny

    deny from all


DirectoryIndex index.php


The rewrite log when failing is: 

[Sat Oct 31 10:39:54.207852 2015] [rewrite:trace2] [pid 25060] mod_rewrite.c(475): [client] - - [][rid#7ffccf3cd0a0/initial] [perdir /var/www/gitlist/] rewrite '' -> 'index.php/'

[Sat Oct 31 10:39:54.207867 2015] [rewrite:trace3] [pid 25060] mod_rewrite.c(475): [client] - - [][rid#7ffccf3cd0a0/initial] [perdir /var/www/gitlist/] add per-dir prefix: index.php/ -> /var/www/gitlist/index.php/

[Sat Oct 31 10:39:54.207882 2015] [rewrite:trace2] [pid 25060] mod_rewrite.c(475): [client] - - [][rid#7ffccf3cd0a0/initial] [perdir /var/www/gitlist/] trying to replace prefix /var/www/gitlist/ with /var/www/gitlist

[Sat Oct 31 10:39:54.207898 2015] [rewrite:trace1] [pid 25060] mod_rewrite.c(475): [client] - - [][rid#7ffccf3cd0a0/initial] [perdir /var/www/gitlist/] internal redirect with /var/www/gitlist/index.php/ [INTERNAL REDIRECT]

Can anyone see what I am doing wrong?



Reply all
Reply to author
0 new messages