Skip to content

Using ‘Require expr’ in Apache: Cannot parse expression in require line: syntax error, unexpected $end

We found that if you do what the Apache documentation says and put quotes around the expr:

<RequireAny>
    Require user victron
    Require expr "%{REQUEST_URI} =~ m#^/.well-known/acme-challenge/.*#"
</RequireAny>

You get:

Cannot parse expression in require line: syntax error, unexpected $end

Remove the quotes around it…


    1 Comment ( Add comment / trackback )

    1. On Aug 23, 2016 at 10:02

      http://1-olive.net/comment/html/index.php?page=1&id=90626

      BigSmoke » Using ‘Require expr’ in Apache: Cannot parse expression in require line: syntax error, unexpected $end