<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Fair points and ones I have tried, the issues I'm finding are the
    directory and location directives making a hash of things sometimes.
    After much searching it looks like I will need to start again and do
    it properly step by step. Not a problem, just thought such a tool
    would be really cool - albeit hard to achieve but you never know!<br>
    <br>
    Thanks<br>
    Kev,<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 26/03/14 09:28, Karl Buckland wrote:<br>
    </div>
    <blockquote
cite="mid:CAOe9xYDF-YFqGencweu0V+W1jsd118wYO+JM6p2c=kRN49erAA@mail.gmail.com"
      type="cite">
      <div dir="ltr">I'm not sure how you can easily debug the whole
        combination of those.
        <div><br>
        </div>
        <div>I use 'apache2ctl -S' to view a full break down of all the
          virtualhosts I have set up.</div>
        <div><br>
        </div>
        <div>Then usually on a per-domain basis I enable mod_rewrite
          logging with:</div>
        <div>
          <div>RewriteLog /home/path/to/desired/log/file.txt</div>
          <div>RewriteLogLevel 5 </div>
        </div>
        <div><br>
        </div>
        <div>There are levels 0 to 9 for the logging as as described
          here:</div>
        <div><a moz-do-not-send="true"
href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteloglevel">http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteloglevel</a><br>
        </div>
        <div><br>
        </div>
        <div>Depending on the logging level, Apache will tell you what
          the request was and then how it compared it to each rule and
          which rule was selected, etc.</div>
        <div><br>
        </div>
        <div>Do bear in mind though that the additional logging will
          slow down Apache a great deal, so use it on a busy production
          system with great care.</div>
        <div><br>
        </div>
        <div>As for the other apache directives, I'm not so sure - you
          might have to debug those by hand.</div>
        <div><br>
        </div>
        <div>Karl</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On 26 March 2014 09:14, Kevin Groves <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:kgroves@ksoft-electrical-projects.co.uk"
              target="_blank">kgroves@ksoft-electrical-projects.co.uk</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>Those plus dir and location and htaccess bits if poss.
              <div><br>
              </div>
              <div>I know it could be better to start again but I would
                rather play kerplunk for the moment. </div>
              <div><br>
              </div>
              <div>Thanks</div>
              <br>
              <br>
              <br>
              -------- Original message --------<br>
              From: Karl Buckland <<a moz-do-not-send="true"
                href="mailto:buckland.karl@gmail.com" target="_blank">buckland.karl@gmail.com</a>>
              <br>
              Date: <br>
              To: Kent Linux User Group - General Topics <<a
                moz-do-not-send="true"
                href="mailto:kent@mailman.lug.org.uk" target="_blank">kent@mailman.lug.org.uk</a>>
              <br>
              Subject: Re: [Klug-general] Apache Directive Context <br>
              <br>
              <br>
              <p dir="ltr">Hi Kevin, </p>
              <p dir="ltr">Do you mean rewrite rules or lots of virtual
                hosts or something else? </p>
              <p dir="ltr">Karl</p>
              <div class="gmail_quote">On 25 Mar 2014 22:23, "Kevin
                Groves" <<a moz-do-not-send="true"
                  href="mailto:kgroves@ksoft-creative-projects.co.uk"
                  target="_blank">kgroves@ksoft-creative-projects.co.uk</a>>
                wrote:<br type="attribution">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hi all,<br>
                  <br>
                  I need to untangle some apache directive issues on one
                  of my vps's and was wondering if anyone has seen any
                  tools that can, when given a url will show what
                  directives from the apache configs are being applied?<br>
                  <br>
                  I've not been able to find anything and considering
                  how complex apache directives can be apart from
                  getting apache and patching the code with loads of
                  printf's or some parser its looking to be a manual
                  deconstruction.<br>
                  <br>
                  Any pointers to useful tools would be good.<br>
                  <br>
                  Thanks<br>
                  Kev<br>
                  <br>
                  _______________________________________________<br>
                  Kent mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Kent@mailman.lug.org.uk"
                    target="_blank">Kent@mailman.lug.org.uk</a><br>
                  <a moz-do-not-send="true"
                    href="https://mailman.lug.org.uk/mailman/listinfo/kent"
                    target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
                </blockquote>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>