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

97 views
Skip to first unread message

Schafdog

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

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

</Directory>


---- .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]

</IfModule>

<Files config.ini>

    order allow,deny

    deny from all

</Files>

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 90.185.139.186:64909] 90.185.139.186 - - [schafroth.dk/sid#7ffcea8fcc28][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 90.185.139.186:64909] 90.185.139.186 - - [schafroth.dk/sid#7ffcea8fcc28][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 90.185.139.186:64909] 90.185.139.186 - - [schafroth.dk/sid#7ffcea8fcc28][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 90.185.139.186:64909] 90.185.139.186 - - [schafroth.dk/sid#7ffcea8fcc28][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?


cheers,

:-Dennis



Reply all
Reply to author
Forward
0 new messages