home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / apache_2.2.8-win32-x86-no_ssl.msi / Data1.cab / _74F538DD807A92200B633605594CCD2A < prev    next >
Extensible Markup Language  |  2007-12-09  |  6KB  |  99 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
  4.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  5.               This file is generated from xml source: DO NOT EDIT
  6.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  7.       -->
  8. <title>mod_substitute - Apache HTTP Server</title>
  9. <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
  10. <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
  11. <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
  12. <link href="../images/favicon.ico" rel="shortcut icon" /></head>
  13. <body>
  14. <div id="page-header">
  15. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
  16. <p class="apache">Apache HTTP Server Version 2.2</p>
  17. <img alt="" src="../images/feather.gif" /></div>
  18. <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
  19. <div id="path">
  20. <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Modules</a></div>
  21. <div id="page-content">
  22. <div id="preamble"><h1>Apache Module mod_substitute</h1>
  23. <div class="toplang">
  24. <p><span>Available Languages: </span><a href="../en/mod/mod_substitute.html" title="English"> en </a></p>
  25. </div>
  26. <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Perform search and replace operations on response bodies</td></tr>
  27. <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
  28. <tr><th><a href="module-dict.html#ModuleIdentifier">ModuleáIdentifier:</a></th><td>substitute_module</td></tr>
  29. <tr><th><a href="module-dict.html#SourceFile">SourceáFile:</a></th><td>mod_substitute.c</td></tr></table>
  30. <h3>Summary</h3>
  31.  
  32.     <p><code class="module"><a href="../mod/mod_substitute.html">mod_substitute</a></code> provides a mechanism to perform
  33.     both regular expression and fixed string substitutions on
  34.     response bodies.</p>
  35. </div>
  36. <div id="quickview"><h3 class="directives">Directives</h3>
  37. <ul id="toc">
  38. <li><img alt="" src="../images/down.gif" /> <a href="#substitute">Substitute</a></li>
  39. </ul>
  40. </div>
  41.  
  42. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  43. <div class="directive-section"><h2><a name="Substitute" id="Substitute">Substitute</a> <a name="substitute" id="substitute">Directive</a></h2>
  44. <table class="directive">
  45. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Pattern to filter the response content</td></tr>
  46. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Substitute <var>s/pattern/substitution/[inf]</var></code></td></tr>
  47. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>directory, .htaccess</td></tr>
  48. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>FileInfo</td></tr>
  49. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
  50. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_substitute</td></tr>
  51. </table>
  52.     <p>The <code class="directive">Substitute</code> directive specifies a
  53.     search and replace pattern to apply to the response body.</p>
  54.     
  55.     <p>The meaning of the pattern can be modified by using any
  56.     combination of these flags:</p>
  57.     
  58.     <dl>
  59.         <dt><code>i</code></dt>
  60.         <dd>Perform a case-insensitive match.</dd>
  61.         <dt><code>n</code></dt>
  62.         <dd>By default the pattern is treated as a regular expression.
  63.         Using the <code>n</code> flag forces the pattern to be treated
  64.         as a fixed string.</dd>
  65.         <dt><code>f</code></dt>
  66.         <dd>The <code>f</code> flag causes mod_substitute to flatten the
  67.         result of a substitution allowing for later substitutions to
  68.         take place on the boundary of this one.</dd>
  69.     </dl>
  70.     
  71.     <div class="example"><h3>Example</h3><p><code>
  72.         <Location />
  73.         <span class="indent">
  74.             AddOutputFilterByType SUBSTITUTE text/html<br />
  75.             Substitute s/foo/bar/ni<br />
  76.         </span>
  77.         </Location>
  78.     </code></p></div>
  79.     
  80.     <p>If either the pattern or the substitution contain a slash
  81.     character then an alternative delimiter should be used:</p>
  82.     
  83.     <div class="example"><h3>Example of using an alternate delimiter</h3><p><code>
  84.         <Location />
  85.         <span class="indent">
  86.             AddOutputFilterByType SUBSTITUTE text/html<br />
  87.             Substitute "s|<BR */?>|<br />|i"
  88.         </span>
  89.         </Location>
  90.     </code></p></div>
  91.  
  92. </div>
  93. </div>
  94. <div class="bottomlang">
  95. <p><span>Available Languages: </span><a href="../en/mod/mod_substitute.html" title="English"> en </a></p>
  96. </div><div id="footer">
  97. <p class="apache">Copyright 2007 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
  98. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
  99. </body></html>