Hi misc@,

I may have found a bug with the combination of
`request rewrite` and `directory auto index`
when using httpd(8).

Preparation:
mkdir -p /var/www/htdocs/pub/user
echo "Hello World" > /var/www/htdocs/pub/user/test


/etc/httpd.conf:
server "example.com" {
        listen on * port 80
        root "/htdocs/website"

        location match "/~(.*)" {
                request rewrite "/%1"
                root "/htdocs/pub"
                directory auto index
        }
}


`curl http://127.0.0.1/~user/test` works perfectly fine,
but `curl http://127.0.0.1/~user/` fails with Internal Server Error.
If I comment out the `request rewrite` and move user to ~user,
it works again.

--
Benjamin Stürz

Reply via email to