cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: ApacheModProxy
Date Sun, 04 Jul 2004 06:21:42 GMT
   Date: 2004-07-03T23:21:42
   Editor: DavidCrossley <crossley@apache.org>
   Wiki: Cocoon Wiki
   Page: ApacheModProxy
   URL: http://wiki.apache.org/cocoon/ApacheModProxy

   null edit to workaround the diff bug

Change Log:

------------------------------------------------------------------------------
@@ -26,9 +26,9 @@
 
 In my opinion (and my boss') it is unacceptable to have a "downtime" on a
 website, and if that happens, whoever connects needs to know what's going
-on, or, at least, we need to tell him something: "{{{We are sorry, but
-currently http://www.domain.tld/ is unavailable because of essential system
-upgrades. We expect to resume all our services in less than 10 minutes.
+on, or, at least, we need to tell him something: "{{{We are sorry, but
+currently http://www.domain.tld/ is unavailable because of essential system
+upgrades. We expect to resume all our services in less than 10 minutes.
 Please, check back later}}}" sounds so much better (maybe with our little nice
 logo, and yada yada, yada).
 
@@ -91,14 +91,14 @@
 
 As a reference, I configure Apache 2.0 in the following way:
 
-{{{
-./configure \
-    --with-mpm=worker \
-    --enable-modules=all \
-    --enable-mods-shared=all \
-    --enable-proxy \
-    --enable-proxy-http \
-    --disable-ipv6
+{{{
+./configure \
+    --with-mpm=worker \
+    --enable-modules=all \
+    --enable-mods-shared=all \
+    --enable-proxy \
+    --enable-proxy-http \
+    --disable-ipv6
 }}}
 
 Basically, I use the {{{worker}}} module, all modules are compiled as DSO
@@ -129,9 +129,9 @@
 (Cocoon, Jetty, Resin, Orion, ... They all have this concept, check out the
 documentation), and configure Apache with those two lines:
 
-{{{
-ProxyPass        / http://localhost:8080/
-ProxyPassReverse / http://localhost:8080/
+{{{
+ProxyPass        / http://localhost:8080/
+ProxyPassReverse / http://localhost:8080/
 }}}
 
 The first one tells Apache that any whatsoever request (from {{{/}}} -slash- onwards) gets
@@ -159,23 +159,23 @@
 everything beginning with {{{/static/}}} straight out of my web-application,
 without even touching the servlet container:
 
-{{{
-# Make sure that my document root points to the root of the web
-# application (where the WEB-INF is located, for instance).
-DocumentRoot /export/webapps/cocoon
-
-# We don't proxy any request beginning with the keyword "/static/".
-# So, for example, "/static/logo.gif" will be served directly by
-# Apache from the "/export/webapps/cocoon/static/logo.gif file"
-ProxyPass        /static/ !
-
-# Another one for "favicon.ico", so that explorer and mozilla are happy
-ProxyPass        /favicon.ico !
-
-# And now we send back to the servlet engine everyting else that does
-# not begin with "/static/" or "/favicon.ico"
-ProxyPass        / http://localhost:8080/
-ProxyPassReverse / http://localhost:8080/
+{{{
+# Make sure that my document root points to the root of the web
+# application (where the WEB-INF is located, for instance).
+DocumentRoot /export/webapps/cocoon
+
+# We don't proxy any request beginning with the keyword "/static/".
+# So, for example, "/static/logo.gif" will be served directly by
+# Apache from the "/export/webapps/cocoon/static/logo.gif file"
+ProxyPass        /static/ !
+
+# Another one for "favicon.ico", so that explorer and mozilla are happy
+ProxyPass        /favicon.ico !
+
+# And now we send back to the servlet engine everyting else that does
+# not begin with "/static/" or "/favicon.ico"
+ProxyPass        / http://localhost:8080/
+ProxyPassReverse / http://localhost:8080/
 }}}
 
 Simple, the {{{!}}} (exclamation mark) keyword in !ProxyPass means "don't" :-)
@@ -198,10 +198,10 @@
 or simply, use the second configuration and include it in your webapp as a
 static file. Anyway, what you have to specify in that case is simply:
 
-{{{
-# If mod_proxy cannot connect to the servlet container, we want
-# to display a nice static page saying the reason
-ErrorDocument 502 /static/unavailable.html
+{{{
+# If mod_proxy cannot connect to the servlet container, we want
+# to display a nice static page saying the reason
+ErrorDocument 502 /static/unavailable.html
 }}}
 
 If (for example) you wanted to use Server-Side-Includes to render your page
@@ -209,54 +209,54 @@
 the request was received, you can do so by using SHTML files. This is what I
 use at home:
 
-{{{
-<html>
-  <head>
-    <title><!--#echo var="SERVER_NAME"-->: server off-line</title>
-  </head>
-  <body>
-    <h3><!--#echo var="SERVER_NAME"-->: server off-line</h3>
-    <p>
-      We are sorry, but the server is temporarily unavailable due to
-      maintenance. Our team is working to restore service as soon as
-      possible.<br />
-      In case of troubles, please feel free to contact our webmaster
-      sending an email to
-      <a href="mailto:<!--#echo var="SERVER_ADMIN"-->">
-        &lt;<!--#echo var="SERVER_ADMIN"-->&gt;
-      </a>.
-    </p>
-    <hr/>
-    <p>
-      <small>
-        <!--#echo var="SERVER_SOFTWARE"--> running on
-        <!--#echo var="SERVER_NAME"-->:<!--#echo var="SERVER_PORT"-->
-        at <!--#echo var="DATE_LOCAL"-->.
-      </small>
-    </p>
-  </body>
-</html>
+{{{
+<html>
+  <head>
+    <title><!--#echo var="SERVER_NAME"-->: server off-line</title>
+  </head>
+  <body>
+    <h3><!--#echo var="SERVER_NAME"-->: server off-line</h3>
+    <p>
+      We are sorry, but the server is temporarily unavailable due to
+      maintenance. Our team is working to restore service as soon as
+      possible.<br />
+      In case of troubles, please feel free to contact our webmaster
+      sending an email to
+      <a href="mailto:<!--#echo var="SERVER_ADMIN"-->">
+        &lt;<!--#echo var="SERVER_ADMIN"-->&gt;
+      </a>.
+    </p>
+    <hr/>
+    <p>
+      <small>
+        <!--#echo var="SERVER_SOFTWARE"--> running on
+        <!--#echo var="SERVER_NAME"-->:<!--#echo var="SERVER_PORT"-->
+        at <!--#echo var="DATE_LOCAL"-->.
+      </small>
+    </p>
+  </body>
+</html>
 }}}
 
 And to make it work properly this is how your {{{httpd.conf}}} will have to look
 like:
 
-{{{
-# Make sure that Server Side Includes are processed and sent
-# to the client with mime-type as text/html
-AddType text/html .shtml
-AddOutputFilter Includes .shtml
-
-# Make sure that our SHTMLs are processed in the static
-# directory
-<Directory "/export/webapps/cocoon">
-    Options IncludesNoExec
-</Directory>
-
-# If mod_proxy cannot connect to the servlet container, we want
-# to display a nice static page saying the reason. This is a
-# SHTML page (using the Server-Side-Includes filter)
-ErrorDocument 502 /static/unavailable.shtml
+{{{
+# Make sure that Server Side Includes are processed and sent
+# to the client with mime-type as text/html
+AddType text/html .shtml
+AddOutputFilter Includes .shtml
+
+# Make sure that our SHTMLs are processed in the static
+# directory
+<Directory "/export/webapps/cocoon">
+    Options IncludesNoExec
+</Directory>
+
+# If mod_proxy cannot connect to the servlet container, we want
+# to display a nice static page saying the reason. This is a
+# SHTML page (using the Server-Side-Includes filter)
+ErrorDocument 502 /static/unavailable.shtml
 }}}
 
 ----
@@ -268,46 +268,46 @@
 the servlet container will block them all)
 
 
-{{{
-# Make sure that my document root points to the root of the web
-# application (where the WEB-INF is located, for instance).
-DocumentRoot /export/webapps/cocoon
-
-# Make sure that Server Side Includes are processed and sent
-# to the client with mime-type as text/html
-AddType text/html .shtml
-AddOutputFilter Includes .shtml
-
-# Make sure that our SHTMLs are processed in the static
-# directory
-<Directory "/export/webapps/cocoon">
-    Options +IncludesNoExec
-</Directory>
-
-# Block the stupid "WEB-INF" pseudo-url (god I wish web-applications
-# were designed with some intelligence... Ok, my fault as well)
-<Location /WEB-INF>
-    Order deny,allow
-    Deny from all
-</Location>
-
-# If mod_proxy cannot connect to the servlet container, we want
-# to display a nice static page saying the reason. This is a
-# SHTML page (using the Server-Side-Includes filter)
-ErrorDocument 502 /static/unavailable.shtml
-
-# We don't proxy any request beginning with the keyword "/static/".
-# So, for example, "/static/logo.gif" will be served directly by
-# Apache from the "/export/webapps/cocoon/static/logo.gif file"
-ProxyPass        /static/ !
-
-# Another one for "favicon.ico", so that explorer and mozilla are happy
-ProxyPass        /favicon.ico !
-
-# And now we send back to the servlet engine everyting else that does
-# not begin with "/static/" or "/favicon.ico"
-ProxyPass        / http://localhost:8080/
-ProxyPassReverse / http://localhost:8080/
+{{{
+# Make sure that my document root points to the root of the web
+# application (where the WEB-INF is located, for instance).
+DocumentRoot /export/webapps/cocoon
+
+# Make sure that Server Side Includes are processed and sent
+# to the client with mime-type as text/html
+AddType text/html .shtml
+AddOutputFilter Includes .shtml
+
+# Make sure that our SHTMLs are processed in the static
+# directory
+<Directory "/export/webapps/cocoon">
+    Options +IncludesNoExec
+</Directory>
+
+# Block the stupid "WEB-INF" pseudo-url (god I wish web-applications
+# were designed with some intelligence... Ok, my fault as well)
+<Location /WEB-INF>
+    Order deny,allow
+    Deny from all
+</Location>
+
+# If mod_proxy cannot connect to the servlet container, we want
+# to display a nice static page saying the reason. This is a
+# SHTML page (using the Server-Side-Includes filter)
+ErrorDocument 502 /static/unavailable.shtml
+
+# We don't proxy any request beginning with the keyword "/static/".
+# So, for example, "/static/logo.gif" will be served directly by
+# Apache from the "/export/webapps/cocoon/static/logo.gif file"
+ProxyPass        /static/ !
+
+# Another one for "favicon.ico", so that explorer and mozilla are happy
+ProxyPass        /favicon.ico !
+
+# And now we send back to the servlet engine everyting else that does
+# not begin with "/static/" or "/favicon.ico"
+ProxyPass        / http://localhost:8080/
+ProxyPassReverse / http://localhost:8080/
 }}}
 
 Simple, easy, beautiful...
@@ -333,59 +333,59 @@
 start, I'm going to rewrite what's written above, using rewrite and its
 flags, from here on, you're on your own :-) :-)
 
-{{{
-# Make sure that my document root points to the root of the web
-# application (where the WEB-INF is located, for instance).
-DocumentRoot /export/webapps/cocoon
-
-# Make sure that Server Side Includes are processed and sent
-# to the client with mime-type as text/html
-AddType text/html .shtml
-AddOutputFilter Includes .shtml
-
-# Make sure that our SHTMLs are processed in the static
-# directory
-<Directory "/export/webapps/cocoon">
-    Options +IncludesNoExec
-</Directory>
-
-# If mod_proxy cannot connect to the servlet container, we want
-# to display a nice static page saying the reason. This is a
-# SHTML page (using the Server-Side-Includes filter)
-ErrorDocument 502 /static/unavailable.shtml
-
-# The nastiness begins, let's fire up the "rewrite engine"
-RewriteEngine On
-
-# Everything that starts with "/static" or "/static/" is served straight
-# through: no redirection, no proxying, no nothing, and the [L] flag
-# implies that if this rule is matched, no other matching must be
-# performed
-RewriteRule "^/static/?(.*)" "$0" [L]
-
-# Everything that starts with a NON-CASE-SENSITIVE match (the NC flag)
-# of "/WEB-INF" or "/WEB-INF/" is forbidden (the F flag). And again,
-# this is the last rule (the L flag), nothing will be processed by the
-# rewrite engine if this rule is matched
-RewriteRule "^/WEB-INF/?(.*)" "$0" [L,F,NC]
-
-# Everything ending in ".gif", ".jpg" or ".jpeg" will be served again
-# directly by Apache, no need to bother the servlet container. As above
-# this is the last rule as specified by the [L] flag at the end
-RewriteRule "^/(.*)\.gif$" "$0" [L]
-
-RewriteRule "^/(.*)\.(jpg|jpeg)$" "$0" [L]
-
-# Everything else not matched above needs to go to the servlet container
-# via HTTP listening on port 8080. The [P] flag (which is required)
-# implies that our requests will be handled by mod_proxy.
-RewriteRule "^/(.*)" "http://localhost:8080/$1" [P]
-
-# Make sure that if the servlet container specifies a "Location" HTTP
-# header during redirection starting with "http://localhost:8080/", we
-# can handle it and return to our client the effective (not real)
-# location we want to redirect them to. This is _essential_.
-ProxyPassReverse / http://localhost:8080/
+{{{
+# Make sure that my document root points to the root of the web
+# application (where the WEB-INF is located, for instance).
+DocumentRoot /export/webapps/cocoon
+
+# Make sure that Server Side Includes are processed and sent
+# to the client with mime-type as text/html
+AddType text/html .shtml
+AddOutputFilter Includes .shtml
+
+# Make sure that our SHTMLs are processed in the static
+# directory
+<Directory "/export/webapps/cocoon">
+    Options +IncludesNoExec
+</Directory>
+
+# If mod_proxy cannot connect to the servlet container, we want
+# to display a nice static page saying the reason. This is a
+# SHTML page (using the Server-Side-Includes filter)
+ErrorDocument 502 /static/unavailable.shtml
+
+# The nastiness begins, let's fire up the "rewrite engine"
+RewriteEngine On
+
+# Everything that starts with "/static" or "/static/" is served straight
+# through: no redirection, no proxying, no nothing, and the [L] flag
+# implies that if this rule is matched, no other matching must be
+# performed
+RewriteRule "^/static/?(.*)" "$0" [L]
+
+# Everything that starts with a NON-CASE-SENSITIVE match (the NC flag)
+# of "/WEB-INF" or "/WEB-INF/" is forbidden (the F flag). And again,
+# this is the last rule (the L flag), nothing will be processed by the
+# rewrite engine if this rule is matched
+RewriteRule "^/WEB-INF/?(.*)" "$0" [L,F,NC]
+
+# Everything ending in ".gif", ".jpg" or ".jpeg" will be served again
+# directly by Apache, no need to bother the servlet container. As above
+# this is the last rule as specified by the [L] flag at the end
+RewriteRule "^/(.*)\.gif$" "$0" [L]
+
+RewriteRule "^/(.*)\.(jpg|jpeg)$" "$0" [L]
+
+# Everything else not matched above needs to go to the servlet container
+# via HTTP listening on port 8080. The [P] flag (which is required)
+# implies that our requests will be handled by mod_proxy.
+RewriteRule "^/(.*)" "http://localhost:8080/$1" [P]
+
+# Make sure that if the servlet container specifies a "Location" HTTP
+# header during redirection starting with "http://localhost:8080/", we
+# can handle it and return to our client the effective (not real)
+# location we want to redirect them to. This is _essential_.
+ProxyPassReverse / http://localhost:8080/
 }}}
 
 As I mentioned before, ugly, but '''really''' effective. In few lines we connect
@@ -405,23 +405,23 @@
 (basically overwriting what Cocoon writes as a body in error pages), we can
 do that by simply adding a few lines to the configurations we used before:
 
-{{{
-# Make sure that Apache processes the headers coming back from the proxy
-# requests. This will enable also the evaluation of HTTP status codes.
-ProxyPassReverse / http://localhost:8000/
-
-# Tell mod_mod proxy that it should not send back the body-content of
-# error pages, but be fascist and use its local error pages if the
-# remote HTTP stack is sending an HTTP 4xx or 5xx status code.
-ProxyErrorOverride On
-
-# For each individual error we want to handle, let's specify what file
-# we want to use. Note that all files must be available through a
-# locally accessible directory (as our /static/), and they can even be
-# SSI files (SHTML files).
-ErrorDocument 404 /static/notfound.shtml
-ErrorDocument 500 /static/error.shtml
-ErrorDocument 502 /static/unavailable.shtml
+{{{
+# Make sure that Apache processes the headers coming back from the proxy
+# requests. This will enable also the evaluation of HTTP status codes.
+ProxyPassReverse / http://localhost:8000/
+
+# Tell mod_mod proxy that it should not send back the body-content of
+# error pages, but be fascist and use its local error pages if the
+# remote HTTP stack is sending an HTTP 4xx or 5xx status code.
+ProxyErrorOverride On
+
+# For each individual error we want to handle, let's specify what file
+# we want to use. Note that all files must be available through a
+# locally accessible directory (as our /static/), and they can even be
+# SSI files (SHTML files).
+ErrorDocument 404 /static/notfound.shtml
+ErrorDocument 500 /static/error.shtml
+ErrorDocument 502 /static/unavailable.shtml
 }}}
 
 This is how it can be done, so that (for example, as suggested by Jeremy),
@@ -440,10 +440,10 @@
 requested by our client. Apache allows us to pass this value through using
 the !ProxyPreserveHost directive:
 
-{{{
-# Make sure that the virtual host name is passed through to the
-# backend servlet container for virtual host support.
-ProxyPreserveHost On
+{{{
+# Make sure that the virtual host name is passed through to the
+# backend servlet container for virtual host support.
+ProxyPreserveHost On
 }}}
 
 ----
@@ -452,91 +452,91 @@
 Linking together all the different pieces we've analyzed before, now, we can
 attempt to write up a do-it-all fragment of our httpd.conf file:
 
-{{{
-#######################################################################
-# GLOBAL CONFIGURATIONS                                               #
-#######################################################################
-
-# Make sure that my document root points to the root of the web
-# application (where the WEB-INF is located, for instance).
-DocumentRoot /export/webapps/cocoon
-
-# Make sure that Server Side Includes are processed and sent
-# to the client with mime-type as text/html
-AddType text/html .shtml
-AddOutputFilter Includes .shtml
-
-# Make sure that our SHTMLs are processed in the static
-# directory
-<Directory "/export/webapps/cocoon">
-    Options +IncludesNoExec
-</Directory>
-
-#######################################################################
-# ERROR PAGES CONFIGURATION                                           #
-#######################################################################
-
-# If mod_proxy cannot connect to the servlet container, we want
-# to display a nice static page saying the reason. This is a
-# SHTML page (using the Server-Side-Includes filter)
-ErrorDocument 502 /static/unavailable.shtml
-
-# For each individual error we want to handle, let's specify what file
-# we want to use. Note that all files must be available through a
-# locally accessible directory (as our /static/), and they can even be
-# SSI files (SHTML files).
-ErrorDocument 404 /static/notfound.shtml
-ErrorDocument 500 /static/error.shtml
-
-#######################################################################
-# MOD_PROXY CONFIGURATIONS                                            #
-#######################################################################
-
-# Make sure that if the servlet container specifies a "Location" HTTP
-# header during redirection starting with "http://localhost:8080/", we
-# can handle it and return to our client the effective (not real)
-# location we want to redirect them to. This is _essential_ to handle
-# also the error returned by the backend servlet container.
-ProxyPassReverse / http://localhost:8080/
-
-# Make sure that the virtual host name is passed through to the
-# backend servlet container for virtual host support.
-ProxyPreserveHost On
-
-# Tell mod_mod proxy that it should not send back the body-content of
-# error pages, but be fascist and use its local error pages if the
-# remote HTTP stack is sending an HTTP 4xx or 5xx status code.
-ProxyErrorOverride On
-
-#######################################################################
-# MOD_REWRITE CONFIGURATIONS                                          #
-#######################################################################
-
-# The nastiness begins, let's fire up the "rewrite engine"
-RewriteEngine On
-
-# Everything that starts with "/static" or "/static/" is served straight
-# through: no redirection, no proxying, no nothing, and the [L] flag
-# implies that if this rule is matched, no other matching must be
-# performed
-RewriteRule "^/static/?(.*)" "$0" [L]
-
-# Everything that starts with a NON-CASE-SENSITIVE match (the NC flag)
-# of "/WEB-INF" or "/WEB-INF/" is forbidden (the F flag). And again,
-# this is the last rule (the L flag), nothing will be processed by the
-# rewrite engine if this rule is matched
-RewriteRule "^/WEB-INF/?(.*)" "$0" [L,F,NC]
-
-# Everything ending in ".gif", ".jpg" or ".jpeg" will be served again
-# directly by Apache, no need to bother the servlet container. As above
-# this is the last rule as specified by the [L] flag at the end
-RewriteRule "^/(.*)\.gif$" "$0" [L]
-RewriteRule "^/(.*)\.(jpg|jpeg)$" "$0" [L]
-
-# Everything else not matched above needs to go to the servlet container
-# via HTTP listening on port 8080. The [P] flag (which is required)
-# implies that our requests will be handled by mod_proxy.
-RewriteRule "^/(.*)" "http://localhost:8080/$1" [P]
+{{{
+#######################################################################
+# GLOBAL CONFIGURATIONS                                               #
+#######################################################################
+
+# Make sure that my document root points to the root of the web
+# application (where the WEB-INF is located, for instance).
+DocumentRoot /export/webapps/cocoon
+
+# Make sure that Server Side Includes are processed and sent
+# to the client with mime-type as text/html
+AddType text/html .shtml
+AddOutputFilter Includes .shtml
+
+# Make sure that our SHTMLs are processed in the static
+# directory
+<Directory "/export/webapps/cocoon">
+    Options +IncludesNoExec
+</Directory>
+
+#######################################################################
+# ERROR PAGES CONFIGURATION                                           #
+#######################################################################
+
+# If mod_proxy cannot connect to the servlet container, we want
+# to display a nice static page saying the reason. This is a
+# SHTML page (using the Server-Side-Includes filter)
+ErrorDocument 502 /static/unavailable.shtml
+
+# For each individual error we want to handle, let's specify what file
+# we want to use. Note that all files must be available through a
+# locally accessible directory (as our /static/), and they can even be
+# SSI files (SHTML files).
+ErrorDocument 404 /static/notfound.shtml
+ErrorDocument 500 /static/error.shtml
+
+#######################################################################
+# MOD_PROXY CONFIGURATIONS                                            #
+#######################################################################
+
+# Make sure that if the servlet container specifies a "Location" HTTP
+# header during redirection starting with "http://localhost:8080/", we
+# can handle it and return to our client the effective (not real)
+# location we want to redirect them to. This is _essential_ to handle
+# also the error returned by the backend servlet container.
+ProxyPassReverse / http://localhost:8080/
+
+# Make sure that the virtual host name is passed through to the
+# backend servlet container for virtual host support.
+ProxyPreserveHost On
+
+# Tell mod_mod proxy that it should not send back the body-content of
+# error pages, but be fascist and use its local error pages if the
+# remote HTTP stack is sending an HTTP 4xx or 5xx status code.
+ProxyErrorOverride On
+
+#######################################################################
+# MOD_REWRITE CONFIGURATIONS                                          #
+#######################################################################
+
+# The nastiness begins, let's fire up the "rewrite engine"
+RewriteEngine On
+
+# Everything that starts with "/static" or "/static/" is served straight
+# through: no redirection, no proxying, no nothing, and the [L] flag
+# implies that if this rule is matched, no other matching must be
+# performed
+RewriteRule "^/static/?(.*)" "$0" [L]
+
+# Everything that starts with a NON-CASE-SENSITIVE match (the NC flag)
+# of "/WEB-INF" or "/WEB-INF/" is forbidden (the F flag). And again,
+# this is the last rule (the L flag), nothing will be processed by the
+# rewrite engine if this rule is matched
+RewriteRule "^/WEB-INF/?(.*)" "$0" [L,F,NC]
+
+# Everything ending in ".gif", ".jpg" or ".jpeg" will be served again
+# directly by Apache, no need to bother the servlet container. As above
+# this is the last rule as specified by the [L] flag at the end
+RewriteRule "^/(.*)\.gif$" "$0" [L]
+RewriteRule "^/(.*)\.(jpg|jpeg)$" "$0" [L]
+
+# Everything else not matched above needs to go to the servlet container
+# via HTTP listening on port 8080. The [P] flag (which is required)
+# implies that our requests will be handled by mod_proxy.
+RewriteRule "^/(.*)" "http://localhost:8080/$1" [P]
 }}}
 
 And that's all... You can roughly copy and paste this example in a
@@ -580,10 +580,10 @@
 ----
 
 More notes from CalebRacey - in order to prevent people from using your proxy to cover their
tracks deny access to any request that doesn't start with a / [[BR]]
-{{{
-<LocationMatch "^[^/]"> 
-Deny from all 
-</LocationMatch> 
+{{{
+<LocationMatch "^[^/]"> 
+Deny from all 
+</LocationMatch> 
 }}}
 People scan for open proxies that will allow proxying of "http://" requests so they set their
browser to use it. 
  
@@ -623,10 +623,11 @@
 
 Caleb, you can also limit which hosts may speak to the proxy through:
 
-{{{<Proxy *>
-  Order Deny,Allow
-  Deny from all
-  Allow from 192.168.0
+{{{<Proxy *>
+  Order Deny,Allow
+  Deny from all
+  Allow from 192.168.0
 </Proxy>}}}
 
 It's a good idea to limit access to the local machine and whatever IPs your debugging from.
+ 

Mime
View raw message