Apache - how to log regex evaluations in IF statements?Is there a free security log analyzer for...

Using a Lyapunov function to classify stability and sketching a phase portrait

How would one muzzle a full grown polar bear in the 13th century?

Is there any limitation with Arduino Nano serial communication distance?

How can I practically buy stocks?

Phrase for the opposite of "foolproof"

Don’t seats that recline flat defeat the purpose of having seatbelts?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

With a Canadian student visa, can I spend a night at Vancouver before continuing to Toronto?

Repelling Blast: Must targets always be pushed back?

What is the difference between `command a[bc]d` and `command `a{b,c}d`

How exactly does Hawking radiation decrease the mass of black holes?

How to stop co-workers from teasing me because I know Russian?

How to solve constants out of the internal energy equation?

Do I have an "anti-research" personality?

Please, smoke with good manners

Why other Westeros houses don't use wildfire?

Who is the Umpire in this picture?

Meaning of Bloch representation

Why does processed meat contain preservatives, while canned fish needs not?

Combinable filters

How did Captain America manage to do this?

how to sum variables from file in bash

How to creep the reader out with what seems like a normal person?

How could Tony Stark make this in Endgame?



Apache - how to log regex evaluations in IF statements?


Is there a free security log analyzer for apache?Apache error log questionOpening a 28GB Apache access logApache log file x-forwarded-for CSV manipulationaccess apache log files in centosHow to log request for particular URL pattern in apacheApache LogFormat: log full domain name all the timeStrange Apache log entries coming from a Google IP addressAdd line break between timestamps in log with regexApache Server Log-502 error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have some IF statements in my Apache config with regular expressions.



Example:



<If "%{REQUEST_METHOD} == 'POST'">
Header set Cache-Control "private, no-cache, no-store"
Header set Edge-Control "no-store"
</If>
<ElseIf "%{REQUEST_URI} =~ m#^/(de|fr|be)/(de|fr|nl)/.*.(html|xml)$#">
Header set Cache-Control "private, max-age=300"
Header set Edge-Control "no-store"
</ElseIf>


I also have set my Loglevel to



LogLevel debug rewrite:trace8


and I can see all the RewriteRule regex evaluations just fine in the log.



But how can I see the match evaluations of the If/Else statements when I want to debug those?










share|improve this question







New contributor




Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    I have some IF statements in my Apache config with regular expressions.



    Example:



    <If "%{REQUEST_METHOD} == 'POST'">
    Header set Cache-Control "private, no-cache, no-store"
    Header set Edge-Control "no-store"
    </If>
    <ElseIf "%{REQUEST_URI} =~ m#^/(de|fr|be)/(de|fr|nl)/.*.(html|xml)$#">
    Header set Cache-Control "private, max-age=300"
    Header set Edge-Control "no-store"
    </ElseIf>


    I also have set my Loglevel to



    LogLevel debug rewrite:trace8


    and I can see all the RewriteRule regex evaluations just fine in the log.



    But how can I see the match evaluations of the If/Else statements when I want to debug those?










    share|improve this question







    New contributor




    Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have some IF statements in my Apache config with regular expressions.



      Example:



      <If "%{REQUEST_METHOD} == 'POST'">
      Header set Cache-Control "private, no-cache, no-store"
      Header set Edge-Control "no-store"
      </If>
      <ElseIf "%{REQUEST_URI} =~ m#^/(de|fr|be)/(de|fr|nl)/.*.(html|xml)$#">
      Header set Cache-Control "private, max-age=300"
      Header set Edge-Control "no-store"
      </ElseIf>


      I also have set my Loglevel to



      LogLevel debug rewrite:trace8


      and I can see all the RewriteRule regex evaluations just fine in the log.



      But how can I see the match evaluations of the If/Else statements when I want to debug those?










      share|improve this question







      New contributor




      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have some IF statements in my Apache config with regular expressions.



      Example:



      <If "%{REQUEST_METHOD} == 'POST'">
      Header set Cache-Control "private, no-cache, no-store"
      Header set Edge-Control "no-store"
      </If>
      <ElseIf "%{REQUEST_URI} =~ m#^/(de|fr|be)/(de|fr|nl)/.*.(html|xml)$#">
      Header set Cache-Control "private, max-age=300"
      Header set Edge-Control "no-store"
      </ElseIf>


      I also have set my Loglevel to



      LogLevel debug rewrite:trace8


      and I can see all the RewriteRule regex evaluations just fine in the log.



      But how can I see the match evaluations of the If/Else statements when I want to debug those?







      apache-http-server regex logging






      share|improve this question







      New contributor




      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      DeeepdiggerDeeepdigger

      1




      1




      New contributor




      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Deeepdigger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Deeepdigger is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429941%2fapache-how-to-log-regex-evaluations-in-if-statements%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Deeepdigger is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Deeepdigger is a new contributor. Be nice, and check out our Code of Conduct.













          Deeepdigger is a new contributor. Be nice, and check out our Code of Conduct.












          Deeepdigger is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429941%2fapache-how-to-log-regex-evaluations-in-if-statements%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...