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…


    6 Comments ( 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

    2. (permalink) Trackback from Learn More Here
      On Sep 11, 2016 at 07:44

      Learn More Here

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

    3. On Sep 14, 2016 at 23:35

      http://groupaif.net/?document_srl=10313

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

    4. http://www.happy3040.com/index.php?mid=free_notice&document_srl=195862&sort_index=regdate&order_type=desc

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

    5. http://swissdc.world/groups/aarkstore-enterprise-retail-futures-q2-2010-electricals/

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

    6. (permalink) Trackback from Pinobook.Com
      On Oct 16, 2016 at 06:47

      Pinobook.Com

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