<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>docs@httpd.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/httpd-docs/"/>
<id>http://mail-archives.apache.org/mod_mbox/httpd-docs/</id>
<updated>2009-12-07T03:26:49Z</updated>
<entry>
<title>Re: DBDParams argument format</title>
<author><name>=?utf-8?Q?Igor_Gali=C4=87?= &lt;i.galic@brainsware.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200912.mbox/%3c1197699307.835.1259884421113.JavaMail.root@iris%3e"/>
<id>urn:uuid:%3c1197699307-835-1259884421113-JavaMail-root@iris%3e</id>
<updated>2009-12-03T23:53:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

If supplying multiple servers to an AuthLdapUrl then it needs to be quoted as well.
(As denoted in trunk: http://httpd.apache.org/docs/trunk/mod/mod_authnz_ldap.html#authldapurl
but not in 2.2, where it is valid as well.)

----- "Rich Bowen" &lt;rbowen@rcbowen.com&gt; wrote:

&gt; On Nov 28, 2009, at 18:02 , Vincent Bray wrote:
&gt; 
&gt; 
&gt; 2009/11/28 Rich Bowen &lt; rbowen@rcbowen.com &gt;:
&gt; 
&gt; 
&gt; If both work, then the canonical format should be spaces, not commas.
&gt; Making
&gt; 
&gt; 
&gt; it commas would make it the odd duck among all of our directives, and
&gt; I'd
&gt; 
&gt; 
&gt; prefer to avoid that.
&gt; 
&gt; To be clear, the spaced format argument must be quoted to be a single
&gt; argument. Is there a precedent for such a
&gt; multi-valued-single-parameter? I can't recall one.
&gt; 
&gt; Nothing comes to mind. Except something like piped log handlers, where
&gt; the entire pipe command needs to be quoted, but that's not really the
&gt; same thing.
&gt; 
&gt; 
&gt; 
&gt; --
&gt; Rich Bowen
&gt; rbowen@rcbowen.com

-- 
Igor GaliÄ‡

Tel: +43 (0) 699 122 96 338
Fax: +43 (0) 1 90 89 226
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: document translation infrastructure?</title>
<author><name>=?utf-8?q?Andr=C3=A9_Malo?= &lt;nd@perlig.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200912.mbox/%3c200912021325.55331.nd@perlig.de%3e"/>
<id>urn:uuid:%3c200912021325-55331-nd@perlig-de%3e</id>
<updated>2009-12-02T12:25:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
* Miles Libbey wrote: 


&gt; Hi folks-
&gt; I work in the Traffic Server incubator project, and have had our first
&gt; request to translate documentation from English into Korean.
&gt;
&gt; I think I missing something in the process that Paul describes.  Sounds
&gt; like:
&gt; 1. Someone makes a change to the English docbook/xml file, and submits a
&gt; patch.
&gt; 2. The patch gets reviewed, and assuming high quality changes, gets
&gt; committed

usually the people directly commit it. The English documentation has CTR 
policy (commit then review).

&gt; 3. something happens in which all the xml.{language_code} files get a
&gt; new "English Revision" comment [what's the something and it's
&gt; surrounding process?], and I'm guessing all reviewed by/{language}
&gt; translation comments get removed.

The English documents (xml) are authoritative. They have the 
LastChangedRevision property set which is filled inside a comment by every 
subversion checkout.

The translator of a document adds a comment to the translation, which 
contains the svn revision number the translation is based on (also within a 
comment, with a specified format).

The build system does the following on every run:

- check which translations exist
- check the LastChangedRevision of the english documents against each 
  translation and if it is different from the translator's comment, the 
  comment is changed to contain the original translator's base revision and 
  the new one of the english document. These generated comments are further
  modified if the English document changes again.
- generate "meta" files for each english document, which contain the 
  information collected above: which languages are available and whether 
  they are outdated or not.
- these meta files are included in the transformation process (xslt) to 
  generate the final html files and typemaps for mod_negotiation.
- Additionally for each language build a list of outdated files is emitted 
  on the console.

[...]


&gt; 6. Something transforms the xml into html.  When transforming,
&gt;   - if there is a (outdated) reference, the language site gets a "This
&gt; translation may be out of date" message on the relevant pages (including
&gt; the index).

Yes.

&gt;   - the html files are copied to a language directory, removing the
&gt; .{language_code} from the file name in the process
&gt; [when does this happen? Is the priority to get a better English version
&gt; out quickly or give other languages a chance to catch up before a push
&gt; date?]

See the typemap story above. There's a corresponding httpd configuration 
working with the typemaps.

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: document translation infrastructure?</title>
<author><name>Miles Libbey &lt;mlibbey@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200912.mbox/%3c4B15999E.4060308@apache.org%3e"/>
<id>urn:uuid:%3c4B15999E-4060308@apache-org%3e</id>
<updated>2009-12-01T22:33:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi folks-
I work in the Traffic Server incubator project, and have had our first 
request to translate documentation from English into Korean.

I think I missing something in the process that Paul describes.  Sounds 
like:
1. Someone makes a change to the English docbook/xml file, and submits a 
patch.
2. The patch gets reviewed, and assuming high quality changes, gets 
committed
3. something happens in which all the xml.{language_code} files get a 
new "English Revision" comment [what's the something and it's 
surrounding process?], and I'm guessing all reviewed by/{language} 
translation comments get removed.
4. Translators run something like
  svn update
  grep "(outdated) --&gt;" *.xml.fr
to get a list of files that are outdated.  [is there something that 
prompts translators to do this?]
5. Translators submit patches (including changing the "English Revision" 
comment to remove the outdated reference, and their name in a 
translation comment), a second person reviews.  Assuming high quality 
changes the second person adds their name to a reviewed by comment, and 
the change is checked in.
6. Something transforms the xml into html.  When transforming,
  - if there is a (outdated) reference, the language site gets a "This 
translation may be out of date" message on the relevant pages (including 
the index).
  - the html files are copied to a language directory, removing the 
.{language_code} from the file name in the process
[when does this happen? Is the priority to get a better English version 
out quickly or give other languages a chance to catch up before a push 
date?]

Roughly correct?

Our current documentation is HTML based -- is there anything about the 
httpd doc process that could not be done for html (vs xml)?

Thanks!
miles libbey

Paul Querna may have written the following on 11/25/09 11:41 AM:
&gt; (adding docs@httpd cc)
&gt;
&gt; On Tue, Nov 24, 2009 at 10:20 AM, Miles Libbey&lt;mlibbey@apache.org&gt;  wrote:
&gt;&gt; Hi folks-
&gt;&gt; We have a volunteer to translate our documentation from English into Korean.
&gt;&gt;   Any recommendations for translation management/infrastructure? That is-- as
&gt;&gt; the english documentation changes, is there any software that can help to
&gt;&gt; find out of date or new strings/sections?
&gt;
&gt; I would recommend looking at or copying how the httpd project handles
&gt; documentation translation.
&gt;
&gt; &lt;http://httpd.apache.org/docs-project/docsformat.html&gt;   Explains some
&gt; of the basics.
&gt;
&gt; For translations, the build keeps track of what subversion revs
&gt; changes a english version of the document, and then modifies the
&gt; non-english translations with information about the missing revisions.
&gt;   On the generated output, it also automatically adds a banner saying
&gt; that the file is out of date compared to the english version.
&gt;
&gt; A concrete example:
&gt; &lt;https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/bind.xml&gt;
&gt; is the current english version of the bind() docs.'
&gt;
&gt; the meta file keeps track of which translations are outdated:
&gt; &lt;https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/bind.xml.meta&gt;
&gt;
&gt; If you look at the german translation:
&gt; &lt;https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/bind.xml.de&gt;
&gt; You can see it keeps a comment at the top of the file, tracking the
&gt; SVN revisions the english version has over the german version:
&gt; &lt;!-- English Revision: 420990:587444 (outdated) --&gt;
&gt;
&gt; For the translater, they can then run svn log/diff over that rev range
&gt; and update their translation.
&gt;
&gt; This system seems to work pretty well for docs@httpd, and I imagine it
&gt; could be adopted to raw HTML.
&gt;
&gt; Someone from docs@httpd could likely explain it better....

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: DBDParams argument format</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cA924F069-B2FF-4D91-AC44-053CC70E546A@rcbowen.com%3e"/>
<id>urn:uuid:%3cA924F069-B2FF-4D91-AC44-053CC70E546A@rcbowen-com%3e</id>
<updated>2009-11-28T23:52:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 28, 2009, at 18:02 , Vincent Bray wrote:

&gt; 2009/11/28 Rich Bowen &lt;rbowen@rcbowen.com&gt;:
&gt;&gt; If both work, then the canonical format should be spaces, not  
&gt;&gt; commas. Making
&gt;&gt; it commas would make it the odd duck among all of our directives,  
&gt;&gt; and I'd
&gt;&gt; prefer to avoid that.
&gt;
&gt; To be clear, the spaced format argument must be quoted to be a single
&gt; argument. Is there a precedent for such a
&gt; multi-valued-single-parameter? I can't recall one.

Nothing comes to mind. Except something like piped log handlers, where  
the entire pipe command needs to be quoted, but that's not really the  
same thing.

--
Rich Bowen
rbowen@rcbowen.com





</pre>
</div>
</content>
</entry>
<entry>
<title>Re: DBDParams argument format</title>
<author><name>Vincent Bray &lt;noodlet@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c813716b60911281502k219ec7efh2bb3a751cc3b9dd9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c813716b60911281502k219ec7efh2bb3a751cc3b9dd9@mail-gmail-com%3e</id>
<updated>2009-11-28T23:02:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/28 Rich Bowen &lt;rbowen@rcbowen.com&gt;:
&gt; If both work, then the canonical format should be spaces, not commas. Making
&gt; it commas would make it the odd duck among all of our directives, and I'd
&gt; prefer to avoid that.

To be clear, the spaced format argument must be quoted to be a single
argument. Is there a precedent for such a
multi-valued-single-parameter? I can't recall one.

-- 
noodl

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: DBDParams argument format</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cE469B64D-44A0-45F1-92A3-54055795B5FA@rcbowen.com%3e"/>
<id>urn:uuid:%3cE469B64D-44A0-45F1-92A3-54055795B5FA@rcbowen-com%3e</id>
<updated>2009-11-28T22:29:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If both work, then the canonical format should be spaces, not commas.  
Making it commas would make it the odd duck among all of our  
directives, and I'd prefer to avoid that.


On Nov 28, 2009, at 12:48 , Vincent Bray wrote:

&gt; There is some confusion in the DBD docs about the format of the
&gt; argument to the DBDParams directive.
&gt;
&gt; http://httpd.apache.org/docs/2.2/mod/mod_dbd.html#dbdparams
&gt; This suggests that arguments should be comma separated.
&gt;
&gt; http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html#example
&gt; And this one uses spaces.
&gt;
&gt; I've tested both formats and they both appear to work. The code in
&gt; apr-util/dbd for parsing the parameter is somewhat impenetrable to me
&gt; so before fixing up the docs, it would help to know which format
&gt; should be canonical.
&gt;
&gt; Plz help ktnx.
&gt;
&gt; -- 
&gt; noodl
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>DBDParams argument format</title>
<author><name>Vincent Bray &lt;noodlet@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c813716b60911280948q1e8d1f0cx2657c5d2a97450c8@mail.gmail.com%3e"/>
<id>urn:uuid:%3c813716b60911280948q1e8d1f0cx2657c5d2a97450c8@mail-gmail-com%3e</id>
<updated>2009-11-28T17:48:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There is some confusion in the DBD docs about the format of the
argument to the DBDParams directive.

http://httpd.apache.org/docs/2.2/mod/mod_dbd.html#dbdparams
This suggests that arguments should be comma separated.

http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html#example
And this one uses spaces.

I've tested both formats and they both appear to work. The code in
apr-util/dbd for parsing the parameter is somewhat impenetrable to me
so before fixing up the docs, it would help to know which format
should be canonical.

Plz help ktnx.

-- 
noodl

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: document translation infrastructure?</title>
<author><name>Paul Querna &lt;paul@querna.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c4239a4320911251141y40137209l7d0e484b051cbc23@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4239a4320911251141y40137209l7d0e484b051cbc23@mail-gmail-com%3e</id>
<updated>2009-11-25T19:41:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
(adding docs@httpd cc)

On Tue, Nov 24, 2009 at 10:20 AM, Miles Libbey &lt;mlibbey@apache.org&gt; wrote:
&gt; Hi folks-
&gt; We have a volunteer to translate our documentation from English into Korean.
&gt; Â Any recommendations for translation management/infrastructure? That is-- as
&gt; the english documentation changes, is there any software that can help to
&gt; find out of date or new strings/sections?

I would recommend looking at or copying how the httpd project handles
documentation translation.

&lt;http://httpd.apache.org/docs-project/docsformat.html&gt;  Explains some
of the basics.

For translations, the build keeps track of what subversion revs
changes a english version of the document, and then modifies the
non-english translations with information about the missing revisions.
 On the generated output, it also automatically adds a banner saying
that the file is out of date compared to the english version.

A concrete example:
&lt;https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/bind.xml&gt;
is the current english version of the bind() docs.'

the meta file keeps track of which translations are outdated:
&lt;https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/bind.xml.meta&gt;

If you look at the german translation:
&lt;https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/manual/bind.xml.de&gt;
You can see it keeps a comment at the top of the file, tracking the
SVN revisions the english version has over the german version:
&lt;!-- English Revision: 420990:587444 (outdated) --&gt;

For the translater, they can then run svn log/diff over that rev range
and update their translation.

This system seems to work pretty well for docs@httpd, and I imagine it
could be adopted to raw HTML.

Someone from docs@httpd could likely explain it better....

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832627 - in /httpd/httpd/trunk/docs/manual/mod: mod_rewrite.html.en mod_rewrite.xml</title>
<author><name>=?utf-8?q?Andr=C3=A9_Malo?= &lt;nd@perlig.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c200911212213.04360@news.perlig.de%3e"/>
<id>urn:uuid:%3c200911212213-04360@news-perlig-de%3e</id>
<updated>2009-11-21T21:13:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
* noirin@apache.org wrote:

&gt; Author: noirin
&gt; Date: Wed Nov  4 00:10:36 2009
&gt; New Revision: 832627
&gt;
&gt; URL: http://svn.apache.org/viewvc?rev=832627&amp;view=rev
&gt; Log:
&gt; Split RewriteCond into two sections, brought TestString section up to
&gt; date.

&lt;section&gt;s inside are &lt;usage&gt; are not allowed (use build validate-xml to 
check against the DTD).
I suggest, to move stuff out of the &lt;usage&gt; block completely instead and 
reference from there.

nd
-- 
"Solides und umfangreiches Buch"
                                          -- aus einer Rezension

&lt;http://pub.perlig.de/books.html#apache2&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: rewrite/access.xml</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c99134177-8241-4FD3-B215-0E8928AA5D6A@rcbowen.com%3e"/>
<id>urn:uuid:%3c99134177-8241-4FD3-B215-0E8928AA5D6A@rcbowen-com%3e</id>
<updated>2009-11-21T17:33:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks. Applied in r882945


On Nov 21, 2009, at 11:31 , Lucien GENTIS wrote:

&gt; Hello all,
&gt;
&gt; file rewrite/access.xml - line 249
&gt;
&gt; shouldn't it rather be
&gt;
&gt; "you should drop the second condition" instead of
&gt; "you should drop the second rule" ?
&gt;
&gt; cheers
&gt;
&gt; Lucien
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>rewrite/access.xml</title>
<author><name>Lucien GENTIS &lt;lucien.gentis@lorraine.iufm.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c4B0815E0.5060908@lorraine.iufm.fr%3e"/>
<id>urn:uuid:%3c4B0815E0-5060908@lorraine-iufm-fr%3e</id>
<updated>2009-11-21T16:31:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello all,

file rewrite/access.xml - line 249

shouldn't it rather be

"you should drop the second condition" instead of
"you should drop the second rule" ?

cheers

Lucien

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Rewrite Flags</title>
<author><name>Vincent Bray &lt;noodlet@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c813716b60911200356o7460c5a0icb788218ada68cd7@mail.gmail.com%3e"/>
<id>urn:uuid:%3c813716b60911200356o7460c5a0icb788218ada68cd7@mail-gmail-com%3e</id>
<updated>2009-11-20T11:56:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/20 Tero Lampiluoto &lt;lampiluoto@gmail.com&gt;:
&gt; I think behaviour of R flag has changed at some point of 2.2.x,
&gt; imho it earlier accepted only certain HTTP status codes.
&gt;
&gt; Does someone have more accurate information on this?

Here's the revision that introduced that change, from Jan '04

http://svn.apache.org/viewvc?view=revision&amp;revision=102321

-- 
noodl

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Rewrite Flags</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c7D5643E9-F44A-4E2B-8FEF-23DDC83317D8@rcbowen.com%3e"/>
<id>urn:uuid:%3c7D5643E9-F44A-4E2B-8FEF-23DDC83317D8@rcbowen-com%3e</id>
<updated>2009-11-20T10:56:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I haven't tested it with 2.3, but will do.

In 2.2, I tested it with all valid HTTP status codes, and it accepted  
all of them.

On Nov 20, 2009, at 01:42 , Tero Lampiluoto wrote:

&gt; Hello,
&gt;
&gt; I think behaviour of R flag has changed at some point of 2.2.x,
&gt; imho it earlier accepted only certain HTTP status codes.
&gt;
&gt; Does someone have more accurate information on this?
&gt; Obviously some testing would solve this out as well... Because
&gt; the version information should be mentioned to avoid unnecessary
&gt; confusion as number of users have older versions provided e.g. by
&gt; their distro.
&gt;
&gt; -- 
&gt; Tero Lampiluoto
&gt; lampiluoto at gmail com
&gt; lamp
&gt;
&gt; On Thu, Nov 19, 2009 at 5:12 PM, Rich Bowen &lt;rbowen@rcbowen.com&gt;  
&gt; wrote:
&gt;&gt; Thanks. Applied r882171.
&gt;&gt;
&gt;&gt; On Nov 19, 2009, at 10:06 , Igor GaliÄ‡ wrote:
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Hi folks,
&gt;&gt;&gt;
&gt;&gt;&gt; here's a small fix to the new rewrite guide's flags.xml:
&gt;&gt;&gt; R= can be *any* (valid) HTTP response.
&gt;&gt;&gt;
&gt;&gt;&gt; Bye,
&gt;&gt;&gt;
&gt;&gt;&gt; --
&gt;&gt;&gt; Igor GaliÄ‡
&gt;&gt;&gt;
&gt;&gt;&gt; Tel: +43 (0) 699 122 96 338
&gt;&gt;&gt; Fax: +43 (0) 1 90 89 226
&gt;&gt;&gt; Mail: i.galic@brainsware.org
&gt;&gt;&gt; URL: http://brainsware.org/
&gt;&gt;&gt; &lt;flags.diff&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt;&gt;&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;&gt;
&gt;&gt; --
&gt;&gt; Rich Bowen
&gt;&gt; rbowen@rcbowen.com
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt;&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Rewrite Flags</title>
<author><name>Tero Lampiluoto &lt;lampiluoto@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c79b4cc010911192242t2a65c4c7wdb84aa9196f536a0@mail.gmail.com%3e"/>
<id>urn:uuid:%3c79b4cc010911192242t2a65c4c7wdb84aa9196f536a0@mail-gmail-com%3e</id>
<updated>2009-11-20T06:42:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

I think behaviour of R flag has changed at some point of 2.2.x,
imho it earlier accepted only certain HTTP status codes.

Does someone have more accurate information on this?
Obviously some testing would solve this out as well... Because
the version information should be mentioned to avoid unnecessary
confusion as number of users have older versions provided e.g. by
their distro.

-- 
 Tero Lampiluoto
 lampiluoto at gmail com
 lamp

On Thu, Nov 19, 2009 at 5:12 PM, Rich Bowen &lt;rbowen@rcbowen.com&gt; wrote:
&gt; Thanks. Applied r882171.
&gt;
&gt; On Nov 19, 2009, at 10:06 , Igor GaliÄ‡ wrote:
&gt;
&gt;&gt;
&gt;&gt; Hi folks,
&gt;&gt;
&gt;&gt; here's a small fix to the new rewrite guide's flags.xml:
&gt;&gt; R= can be *any* (valid) HTTP response.
&gt;&gt;
&gt;&gt; Bye,
&gt;&gt;
&gt;&gt; --
&gt;&gt; Igor GaliÄ‡
&gt;&gt;
&gt;&gt; Tel: +43 (0) 699 122 96 338
&gt;&gt; Fax: +43 (0) 1 90 89 226
&gt;&gt; Mail: i.galic@brainsware.org
&gt;&gt; URL: http://brainsware.org/
&gt;&gt; &lt;flags.diff&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt;&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;
&gt; --
&gt; Rich Bowen
&gt; rbowen@rcbowen.com
&gt;
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;
&gt;

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Rewrite Flags</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c37B21A02-2974-4695-A178-FD0C72096E1F@rcbowen.com%3e"/>
<id>urn:uuid:%3c37B21A02-2974-4695-A178-FD0C72096E1F@rcbowen-com%3e</id>
<updated>2009-11-19T15:12:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks. Applied r882171.

On Nov 19, 2009, at 10:06 , Igor GaliÄ‡ wrote:

&gt;
&gt; Hi folks,
&gt;
&gt; here's a small fix to the new rewrite guide's flags.xml:
&gt; R= can be *any* (valid) HTTP response.
&gt;
&gt; Bye,
&gt;
&gt; -- 
&gt; Igor GaliÄ‡
&gt;
&gt; Tel: +43 (0) 699 122 96 338
&gt; Fax: +43 (0) 1 90 89 226
&gt; Mail: i.galic@brainsware.org
&gt; URL: http://brainsware.org/
&gt; &lt;flags.diff&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Rewrite Flags</title>
<author><name>=?utf-8?Q?Igor_Gali=C4=87?= &lt;i.galic@brainsware.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c308503706.481.1258643217958.JavaMail.root@iris%3e"/>
<id>urn:uuid:%3c308503706-481-1258643217958-JavaMail-root@iris%3e</id>
<updated>2009-11-19T15:06:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi folks,

here's a small fix to the new rewrite guide's flags.xml:
R= can be *any* (valid) HTTP response.

Bye,

-- 
Igor GaliÄ‡

Tel: +43 (0) 699 122 96 338
Fax: +43 (0) 1 90 89 226
Mail: i.galic@brainsware.org
URL: http://brainsware.org/


</pre>
</div>
</content>
</entry>
<entry>
<title>mod_rewrite</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c530459A5-9D09-446B-BFDE-3C524679EE58@rcbowen.com%3e"/>
<id>urn:uuid:%3c530459A5-9D09-446B-BFDE-3C524679EE58@rcbowen-com%3e</id>
<updated>2009-11-17T16:14:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The rewrite_guide.html file has been divvied up into topic-specific  
chunks. There are still some recipes in the 'advanced' doc that need  
to be fixed. And I'd like to do a [P] doc, and possibly a vhost doc.  
But I think it's a huge step forward, and almost all of the examples  
actually work now.

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Performance tuning documentation</title>
<author><name>=?utf-8?Q?Igor_Gali=C4=87?= &lt;i.galic@brainsware.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c480112718.36.1258112353418.JavaMail.root@iris%3e"/>
<id>urn:uuid:%3c480112718-36-1258112353418-JavaMail-root@iris%3e</id>
<updated>2009-11-13T11:39:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

----- "Graham Leggett" &lt;minfrin@sharp.fm&gt; wrote:

&gt; Rich Bowen wrote:
&gt; 
&gt; &gt; The performance tuning documentation that we currently include in
&gt; the
&gt; &gt; docs is simply awful. What with the comments about Apache 1.2 and
&gt; the
&gt; &gt; suggestions of how to deal with the new Linux 2.0 kernel, I think
&gt; it's
&gt; &gt; beyond fixing. It needs to be tossed and rewritten - although
&gt; perhaps
&gt; &gt; there are parts that are salvageable.
&gt; &gt; 
&gt; &gt; I was wondering if someone has a performance doc that they could
&gt; &gt; contribute as a starting place? Perhaps Sander's talk from AC? Or
&gt; if
&gt; &gt; someone would be willing to give some attention to the docs list for
&gt; a
&gt; &gt; while to assist in writing something that would be useful to actual
&gt; &gt; admins in the real world.
&gt; 
&gt; Something else related that I think we should address are our default
&gt; config files and performance.
&gt; 
&gt; Up till now, the build has assumed that if a module was built, then a
&gt; LoadModule line should appear in the default config file for that
&gt; module. Because distros typically compile most (if not all) of the
&gt; modules, most (if not all) of the modules end up being loaded into
&gt; the
&gt; server by default, in turn meaning lots of hook calling and
&gt; per-request
&gt; config parsing is being done for no reason.

It's been a long time now, but I still remember Rich asking for a
Apache httpd starting *without* a config.
I'm not sure this is easily doable, but I'm pretty confident that
we can slim down the basic config (httpd.conf) to a very minimalistic
level and put all the fluff in extra

Matthew's configs are pretty good example of how to do it right:

http://www.linux-corner.info/httpd/httpd.conf
http://www.linux-corner.info/httpd/httpd-simple.conf

They are short and quite clear on what they,

&gt; [snip]

So long
-- 
Igor GaliÄ‡

Tel: +43 (0) 699 122 96 338
Fax: +43 (0) 1 90 89 226
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Performance tuning documentation</title>
<author><name>Graham Leggett &lt;minfrin@sharp.fm&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c4AFD3A6A.5000002@sharp.fm%3e"/>
<id>urn:uuid:%3c4AFD3A6A-5000002@sharp-fm%3e</id>
<updated>2009-11-13T10:52:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Rich Bowen wrote:

&gt; The performance tuning documentation that we currently include in the
&gt; docs is simply awful. What with the comments about Apache 1.2 and the
&gt; suggestions of how to deal with the new Linux 2.0 kernel, I think it's
&gt; beyond fixing. It needs to be tossed and rewritten - although perhaps
&gt; there are parts that are salvageable.
&gt; 
&gt; I was wondering if someone has a performance doc that they could
&gt; contribute as a starting place? Perhaps Sander's talk from AC? Or if
&gt; someone would be willing to give some attention to the docs list for a
&gt; while to assist in writing something that would be useful to actual
&gt; admins in the real world.

Something else related that I think we should address are our default
config files and performance.

Up till now, the build has assumed that if a module was built, then a
LoadModule line should appear in the default config file for that
module. Because distros typically compile most (if not all) of the
modules, most (if not all) of the modules end up being loaded into the
server by default, in turn meaning lots of hook calling and per-request
config parsing is being done for no reason.

A pattern I've adopted is to put the load module alongside the config
fragment that requires it, like this:

&lt;IfModule !mod_foo.c&gt;
  LoadModule foo_module mod_foo.so
&lt;/LoadModule&gt;

If the config fragment isn't used, the corresponding module isn't loaded.

Regards,
Graham
--

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Performance tuning documentation</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cAD176493-40F5-4AAD-886E-C98A324E8F0E@rcbowen.com%3e"/>
<id>urn:uuid:%3cAD176493-40F5-4AAD-886E-C98A324E8F0E@rcbowen-com%3e</id>
<updated>2009-11-12T16:30:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The performance tuning documentation that we currently include in the  
docs is simply awful. What with the comments about Apache 1.2 and the  
suggestions of how to deal with the new Linux 2.0 kernel, I think it's  
beyond fixing. It needs to be tossed and rewritten - although perhaps  
there are parts that are salvageable.

I was wondering if someone has a performance doc that they could  
contribute as a starting place? Perhaps Sander's talk from AC? Or if  
someone would be willing to give some attention to the docs list for a  
while to assist in writing something that would be useful to actual  
admins in the real world.

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: seems stale</title>
<author><name>Mads Toftum &lt;mads@toftum.dk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c20091112072247.GE1151@cr%3e"/>
<id>urn:uuid:%3c20091112072247-GE1151@cr%3e</id>
<updated>2009-11-12T07:22:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Nov 11, 2009 at 10:38:23PM -0600, William A. Rowe Jr. wrote:
&gt; None of the first paragraph here seems relevant to 2.0 through trunk;
&gt; 
&gt;   http://httpd.apache.org/docs/2.2/ssl/ssl_compat.html
&gt; 
&gt; WDYT?  Mop-up time?
&gt; 
I'm thinking it'd almost be better just to get rid of the whole page.
If not, most of it probably needs to be rewritten to compare to slightly
more recent things.
The only thing that seems useful to me is the Custom Log Functions section.

vh

Mads Toftum
-- 
http://soulfood.dk

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>seems stale</title>
<author><name>&quot;William A. Rowe Jr.&quot; &lt;wrowe@rowe-clan.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c4AFB913F.7090209@rowe-clan.net%3e"/>
<id>urn:uuid:%3c4AFB913F-7090209@rowe-clan-net%3e</id>
<updated>2009-11-12T04:38:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
None of the first paragraph here seems relevant to 2.0 through trunk;

  http://httpd.apache.org/docs/2.2/ssl/ssl_compat.html

WDYT?  Mop-up time?

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: manual/rewrite/remapping.xml</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cE47848EF-B081-484A-8FE8-D87F58DD056A@rcbowen.com%3e"/>
<id>urn:uuid:%3cE47848EF-B081-484A-8FE8-D87F58DD056A@rcbowen-com%3e</id>
<updated>2009-11-07T17:42:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks. Applied r833721.

It would be great if folks would pitch in and help with the reorg of  
the rewrite guide. Basically we're splitting it into sub-docs, and, in  
the process, correcting the numerous errors, and improving the  
phrasing to be less "gee, look what I can do" and more helpful and  
hand-holding.

--Rich

On Nov 7, 2009, at 08:40 , Lucien GENTIS wrote:

&gt; Hi to all,
&gt;
&gt; Trunk branch - file manual/rewrite/remapping.xml - line194 :
&gt;
&gt; "Consequently, $1 is already defined by the time the RewriteRule
&gt; directives are evaluated."
&gt;
&gt; Shouldn't it be instead
&gt;
&gt; "Consequently, $1 is already defined by the time the RewriteCond
&gt; directives are evaluated." ?
&gt;
&gt; Lucien
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>manual/rewrite/remapping.xml</title>
<author><name>Lucien GENTIS &lt;lucien.gentis@lorraine.iufm.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c4AF5A2F9.9040402@lorraine.iufm.fr%3e"/>
<id>urn:uuid:%3c4AF5A2F9-9040402@lorraine-iufm-fr%3e</id>
<updated>2009-11-07T16:40:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi to all,

Trunk branch - file manual/rewrite/remapping.xml - line194 :

"Consequently, $1 is already defined by the time the RewriteRule
directives are evaluated."

Shouldn't it be instead

"Consequently, $1 is already defined by the time the RewriteCond
directives are evaluated." ?

Lucien


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>manual/rewrite/remapping.xml</title>
<author><name>Lucien GENTIS &lt;lucien.gentis@lorraine.iufm.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c4AF5A2C0.7090005@lorraine.iufm.fr%3e"/>
<id>urn:uuid:%3c4AF5A2C0-7090005@lorraine-iufm-fr%3e</id>
<updated>2009-11-07T16:39:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi to all,

Trunk branch - file manual/rewrite/remapping.xml - line194 :

"Consequently, $1 is already defined by the time the RewriteRule
directives are evaluated."

Shouldn't it be instead

"Consequently, $1 is already defined by the time the RewriteCond
directives are evaluated." ?

Lucien


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: rewrite rule user dir as subdomain</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c654EA940-FF91-4DB8-A953-AC75B412CC43@rcbowen.com%3e"/>
<id>urn:uuid:%3c654EA940-FF91-4DB8-A953-AC75B412CC43@rcbowen-com%3e</id>
<updated>2009-11-05T15:35:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There is actually already that example in the rewrite guide. Like many  
of the other examples, it is well concealed, and doesn't work very  
well. Using mod_rewrite for this causes a number of things to break on  
an alarmingly regular basis - most significantly, dynamic thingies  
tend to get served as static files all too often.

One of the new main focuses of the rewrite guide is to nudge people  
towards solutions that don't use mod_rewrite, such as, in this case,  
mod_vhost_alias.

The sheer number of people who are doing virtualhosting at  
the .htaccess file level is pretty alarming.



On Nov 5, 2009, at 01:58 , Mario Brandt wrote:

&gt; Hi!
&gt; I've often been asked how to make userdir as a sudomain.
&gt;
&gt; Maybe that can be as well in the rewrite guide.
&gt;
&gt;
&gt; cheers
&gt; Mario
&gt;
&gt;
&gt;
&gt; DocumentRoot /webhosts/
&gt;
&gt; [...]
&gt;
&gt; &lt;VirtualHost *&gt;
&gt; ServerAlias www.example.com
&gt; ServerName www.example.com
&gt; RewriteEngine  on
&gt; RewriteCond    %{HTTP_HOST}  ^example.com
&gt; RewriteRule    ^(.*)$        /www/$1 [L]
&gt; RewriteCond    %{HTTP_HOST}  ^www.*
&gt; RewriteRule    ^(.*)$        /www/$1 [L]
&gt; RewriteCond    %{HTTP_HOST}  ^(.*)\.example\.com
&gt; RewriteRule    ^(.*)$        /%1/$1 [L]
&gt; &lt;/VirtualHost&gt;
&gt;
&gt; Will be translated to
&gt;
&gt; www.yourdomain.com =&gt; /webhosts/www/
&gt; muon.yourdomain.com =&gt; /webhosts/muon/
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: rewrite rule user dir as subdomain</title>
<author><name>Mads Toftum &lt;mads@toftum.dk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c20091105101003.GE5072@cr%3e"/>
<id>urn:uuid:%3c20091105101003-GE5072@cr%3e</id>
<updated>2009-11-05T10:10:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Nov 05, 2009 at 10:58:17AM +0100, Mario Brandt wrote:
&gt; Hi!
&gt; I've often been asked how to make userdir as a sudomain.
&gt; 
&gt; Maybe that can be as well in the rewrite guide.
&gt; 
Actually that's one of my common examples of where mod_rewrite is being
used excessively. For the general case, mod_vhost_alias is usually a
much better choice.

vh

Mads Toftum
-- 
http://soulfood.dk

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>rewrite rule user dir as subdomain</title>
<author><name>Mario Brandt &lt;jblond@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cb1a6fc620911050158q22a6a0edj357157a13a36058f@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb1a6fc620911050158q22a6a0edj357157a13a36058f@mail-gmail-com%3e</id>
<updated>2009-11-05T09:58:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi!
I've often been asked how to make userdir as a sudomain.

Maybe that can be as well in the rewrite guide.


cheers
Mario



DocumentRoot /webhosts/

[...]

&lt;VirtualHost *&gt;
ServerAlias www.example.com
ServerName www.example.com
RewriteEngine  on
RewriteCond    %{HTTP_HOST}  ^example.com
RewriteRule    ^(.*)$        /www/$1 [L]
RewriteCond    %{HTTP_HOST}  ^www.*
RewriteRule    ^(.*)$        /www/$1 [L]
RewriteCond    %{HTTP_HOST}  ^(.*)\.example\.com
RewriteRule    ^(.*)$        /%1/$1 [L]
&lt;/VirtualHost&gt;

Will be translated to

www.yourdomain.com =&gt; /webhosts/www/
muon.yourdomain.com =&gt; /webhosts/muon/

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Help with rewrite rule</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c677F9251-6B90-4E81-BFE9-3634064990BE@rcbowen.com%3e"/>
<id>urn:uuid:%3c677F9251-6B90-4E81-BFE9-3634064990BE@rcbowen-com%3e</id>
<updated>2009-11-05T01:59:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Can someone take a look at http://httpd.apache.org/docs/trunk/rewrite/rewrite_guide.html#reverse-dynamic-mirror

  and suggest what they think this rule was intended to do? I'm  
inclined to just axe it, since no description was every provided.

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832217 - in /httpd/httpd/trunk/docs/manual/rewrite:	index.html.en index.xml index.xml.tr remapping.html.en remapping.xml	rewrite_guide.html.en rewrite_guide.xml</title>
<author><name>Eric Covener &lt;covener@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c1404e5910911041100s154d4035l3e65ed8c648ac66a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c1404e5910911041100s154d4035l3e65ed8c648ac66a@mail-gmail-com%3e</id>
<updated>2009-11-04T19:00:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Nov 4, 2009 at 1:19 PM, Rich Bowen &lt;rbowen@rcbowen.com&gt; wrote:
&gt; Will this fix it? :
&gt;
&gt;
&gt; @@ -177,11 +177,14 @@
&gt;  #   backward compatibility ruleset for
&gt;  #   rewriting document.html to document.php
&gt;  #   when and only when document.php exists
&gt; +&amp;lt;Directory /var/www/htdocs&amp;gt;
&gt;  RewriteEngine on
&gt; +RewriteBase /var/www/htdocs
&gt;
&gt;  RewriteCond $1.php -f
&gt;  RewriteCond $1.html !-f
&gt; -RewriteRule ^(.*).html$ $1.php
&gt; +RewriteRule ^(.*).html$ $1.php
&gt; +&amp;lt;/Directory&amp;gt;
&gt;  &lt;/pre&gt;&lt;/example&gt;
&gt;     &lt;/dd&gt;

RewriteBase is the URL-path, not the filesystem path.  And I don't
think test strings in a condition are expanded with respect to the
base.

You can figure out where the first pass landed by using
%{REQUEST_FILENAME} in per-dir context:

Alias /a /tmp/a
&lt;directory /tmp/a&gt;
RewriteBase /a
RewriteEngine on
# full path in per-directory contet
RewriteCond %{REQUEST_FILENAME} (.*)\.html$
RewriteCond %1.php -f
RewriteRule (.*)\.html$ $1.php
&lt;/directory&gt;


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832217 - in /httpd/httpd/trunk/docs/manual/rewrite: index.html.en index.xml index.xml.tr remapping.html.en remapping.xml rewrite_guide.html.en rewrite_guide.xml</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c243471BB-1159-4F8B-A051-D08BAB6577A4@rcbowen.com%3e"/>
<id>urn:uuid:%3c243471BB-1159-4F8B-A051-D08BAB6577A4@rcbowen-com%3e</id>
<updated>2009-11-04T18:19:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Will this fix it? :


@@ -177,11 +177,14 @@
  #   backward compatibility ruleset for
  #   rewriting document.html to document.php
  #   when and only when document.php exists
+&amp;lt;Directory /var/www/htdocs&amp;gt;
  RewriteEngine on
+RewriteBase /var/www/htdocs

  RewriteCond $1.php -f
  RewriteCond $1.html !-f
-RewriteRule ^(.*).html$ $1.php
+RewriteRule ^(.*).html$ $1.php
+&amp;lt;/Directory&amp;gt;
  &lt;/pre&gt;&lt;/example&gt;
      &lt;/dd&gt;



On Nov 3, 2009, at 06:36 , Bob Ionescu wrote:

&gt; 2009/11/3  &lt;rbowen@apache.org&gt;:
&gt;&gt; Author: rbowen
&gt;&gt; Date: Tue Nov  3 00:16:57 2009
&gt;&gt; New Revision: 832217
&gt;&gt;
&gt;&gt; URL: http://svn.apache.org/viewvc?rev=832217&amp;view=rev
&gt;&gt; Log:
&gt;&gt; Moves another rule out of rewrite_guide, and updates it for modern
&gt;&gt; versions of mod_rewrite
&gt;&gt;
&gt;&gt; Modified:
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/index.html.en
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/index.xml
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/index.xml.tr
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/remapping.html.en
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/remapping.xml
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en
&gt;&gt;   httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml
&gt; [...
&gt; ]&gt; +&lt;div class="example"&gt;&lt;pre&gt;
&gt;&gt; +#   backward compatibility ruleset for
&gt;&gt; +#   rewriting document.html to document.php
&gt;&gt; +#   when and only when document.php exists
&gt;&gt; +RewriteEngine on
&gt;&gt; +
&gt;&gt; +RewriteCond $1.php -f
&gt;&gt; +RewriteCond $1.html !-f
&gt;&gt; +RewriteRule ^(.*).html$ $1.php
&gt;
&gt; I think this will lead to problems since $1 should contain (in per-dir
&gt; context) only local/foo and not /full/physical/path/to/local/foo as
&gt; required by apr_stat().
&gt;
&gt; Bob
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832310 - in /httpd/httpd/trunk/docs/manual/rewrite: remapping.html.en remapping.xml</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c51E8251D-CAF4-4ADE-85A1-2F5CD5185CAB@rcbowen.com%3e"/>
<id>urn:uuid:%3c51E8251D-CAF4-4ADE-85A1-2F5CD5185CAB@rcbowen-com%3e</id>
<updated>2009-11-04T18:13:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks. Applied in r832826.

On Nov 3, 2009, at 06:17 , Bob Ionescu wrote:

&gt; 2009/11/3  &lt;rbowen@apache.org&gt;:
&gt;&gt; Author: rbowen
&gt;&gt; Date: Tue Nov  3 06:09:35 2009
&gt;&gt; New Revision: 832310
&gt; [...]
&gt;&gt; -RewriteRule   ^(.*)$  ${multiplex:&lt;strong&gt;%1&lt;/strong&gt;|www.example.com

&gt;&gt; }$1  [R,L]
&gt;&gt; +RewriteRule   ^(.*)$  ${multiplex:&lt;strong&gt;%1&lt;/strong&gt;|http://www.example.com/

&gt;&gt; }$1  [R,L]
&gt;
&gt; I think the pattern should be ^/(.*) as well since the rule-set is
&gt; likely placed into server context due to the map definition. So one
&gt; will get example.com//foo or example.de//foo since both the map values
&gt; and the default value supply the leading slash of the URL-path
&gt; portion.
&gt;
&gt; Bob
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
&gt; For additional commands, e-mail: docs-help@httpd.apache.org
&gt;

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832217 - in /httpd/httpd/trunk/docs/manual/rewrite: index.html.en index.xml index.xml.tr remapping.html.en remapping.xml rewrite_guide.html.en rewrite_guide.xml</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c1AA1117D-3FCA-4F9B-A8F0-AA09C13D743D@rcbowen.com%3e"/>
<id>urn:uuid:%3c1AA1117D-3FCA-4F9B-A8F0-AA09C13D743D@rcbowen-com%3e</id>
<updated>2009-11-03T16:41:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 3, 2009, at 06:36 , Bob Ionescu wrote:

&gt;&gt;
&gt;&gt; +#   backward compatibility ruleset for
&gt;&gt; +#   rewriting document.html to document.php
&gt;&gt; +#   when and only when document.php exists
&gt;&gt; +RewriteEngine on
&gt;&gt; +
&gt;&gt; +RewriteCond $1.php -f
&gt;&gt; +RewriteCond $1.html !-f
&gt;&gt; +RewriteRule ^(.*).html$ $1.php
&gt;
&gt; I think this will lead to problems since $1 should contain (in per-dir
&gt; context) only local/foo and not /full/physical/path/to/local/foo as
&gt; required by apr_stat().


Ah. We need a RewriteBase on there. Thanks.

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: mod_rewrite - starting to break stuff</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cC2C0218C-95BD-41DD-A21B-DBC7323FE7CD@rcbowen.com%3e"/>
<id>urn:uuid:%3cC2C0218C-95BD-41DD-A21B-DBC7323FE7CD@rcbowen-com%3e</id>
<updated>2009-11-03T16:39:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 3, 2009, at 06:32 , Dan Poirier wrote:

&gt; Rich Bowen &lt;rbowen@rcbowen.com&gt; writes:
&gt;
&gt;&gt; I've rewritten the intro to mod_rewrite at /docs/manual/rewrite/
&gt;&gt; index.html  Please take a look at it and let me know what you
&gt;&gt; think.
&gt;
&gt; Reading the introduction, under "RewriteRule basics", I wonder how it
&gt; distinguishes between the first two kinds of substitution, a  
&gt; filesystem
&gt; path or a web-path, since they have pretty much the same syntax.  I
&gt; think this would be a good place for a hint about that.

Yes, I noticed that too and then forgot about it. Thanks for the  
reminder. Mostly I've been horrified at how much *completely* wrong  
stuff has been in the mod_rewrite docs for more than ten years.

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832130 - in /httpd/httpd/trunk/docs/manual/mod:	mod_rewrite.html.en mod_rewrite.xml</title>
<author><name>Bob Ionescu &lt;bobsiegen@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c553da56d0911030650v10893237u4e764924d94c5127@mail.gmail.com%3e"/>
<id>urn:uuid:%3c553da56d0911030650v10893237u4e764924d94c5127@mail-gmail-com%3e</id>
<updated>2009-11-03T14:50:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/2  &lt;noirin@apache.org&gt;:
&gt; Author: noirin
&gt; Date: Mon Nov  2 22:05:01 2009
&gt; New Revision: 832130
&gt;
&gt; URL: http://svn.apache.org/viewvc?rev=832130&amp;view=rev
&gt; Log:
&gt; Ripping out the stuff that isn't really module reference, and translating the
&gt; introduction to English
&gt;
&gt; Modified:
&gt;    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.html.en
&gt;    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
[...]
&gt; -&lt;h2&gt;&lt;a name="EnvVar" id="EnvVar"&gt;Environment Variables&lt;/a&gt;&lt;/h2&gt;
&gt; -
&gt; -      &lt;p&gt;This module keeps track of two additional (non-standard)
&gt; -      CGI/SSI environment variables named &lt;code&gt;SCRIPT_URL&lt;/code&gt;
&gt; -      and &lt;code&gt;SCRIPT_URI&lt;/code&gt;. These contain the
&gt; -      &lt;em&gt;logical&lt;/em&gt; Web-view to the current resource, while the
&gt; -      standard CGI/SSI variables &lt;code&gt;SCRIPT_NAME&lt;/code&gt; and
&gt; -      &lt;code&gt;SCRIPT_FILENAME&lt;/code&gt; contain the &lt;em&gt;physical&lt;/em&gt;
&gt; -      System-view. &lt;/p&gt;
&gt; -
&gt; -      &lt;p&gt;Notice: These variables hold the URI/URL &lt;em&gt;as they were
&gt; -      initially requested&lt;/em&gt;, that is, &lt;em&gt;before&lt;/em&gt; any
&gt; -      rewriting. This is important to note because the rewriting process is
&gt; -      primarily used to rewrite logical URLs to physical
&gt; -      pathnames.&lt;br /&gt;
&gt; -      These variables are set in per-server context, which means
&gt; -      that they are available in per-directory context only, if
&gt; -      &lt;code class="directive"&gt;RewriteEngine&lt;/code&gt; is set to &lt;code&gt;on&lt;/code&gt;
in
&gt; -      per-server context.&lt;/p&gt;

I think this should go somewhere else (may be env.xml?), otherwise it
is undocumented that mod_rewrite adds the special non-standard ENVs
SCRIPT_URL and SCRIPT_URI to the internal env table when used in
server context.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832217 - in /httpd/httpd/trunk/docs/manual/rewrite:	index.html.en index.xml index.xml.tr remapping.html.en remapping.xml	rewrite_guide.html.en rewrite_guide.xml</title>
<author><name>Bob Ionescu &lt;bobsiegen@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c553da56d0911030636r16f8562eub6c6abb3473419ef@mail.gmail.com%3e"/>
<id>urn:uuid:%3c553da56d0911030636r16f8562eub6c6abb3473419ef@mail-gmail-com%3e</id>
<updated>2009-11-03T14:36:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/3  &lt;rbowen@apache.org&gt;:
&gt; Author: rbowen
&gt; Date: Tue Nov  3 00:16:57 2009
&gt; New Revision: 832217
&gt;
&gt; URL: http://svn.apache.org/viewvc?rev=832217&amp;view=rev
&gt; Log:
&gt; Moves another rule out of rewrite_guide, and updates it for modern
&gt; versions of mod_rewrite
&gt;
&gt; Modified:
&gt;    httpd/httpd/trunk/docs/manual/rewrite/index.html.en
&gt;    httpd/httpd/trunk/docs/manual/rewrite/index.xml
&gt;    httpd/httpd/trunk/docs/manual/rewrite/index.xml.tr
&gt;    httpd/httpd/trunk/docs/manual/rewrite/remapping.html.en
&gt;    httpd/httpd/trunk/docs/manual/rewrite/remapping.xml
&gt;    httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en
&gt;    httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml
[...
]&gt; +&lt;div class="example"&gt;&lt;pre&gt;
&gt; +#   backward compatibility ruleset for
&gt; +#   rewriting document.html to document.php
&gt; +#   when and only when document.php exists
&gt; +RewriteEngine on
&gt; +
&gt; +RewriteCond $1.php -f
&gt; +RewriteCond $1.html !-f
&gt; +RewriteRule ^(.*).html$ $1.php

I think this will lead to problems since $1 should contain (in per-dir
context) only local/foo and not /full/physical/path/to/local/foo as
required by apr_stat().

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: mod_rewrite - starting to break stuff</title>
<author><name>Dan Poirier &lt;poirier@pobox.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3cyuaeiof3chy.fsf@slappy.raleigh.ibm.com%3e"/>
<id>urn:uuid:%3cyuaeiof3chy-fsf@slappy-raleigh-ibm-com%3e</id>
<updated>2009-11-03T14:32:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Rich Bowen &lt;rbowen@rcbowen.com&gt; writes:

&gt; I've rewritten the intro to mod_rewrite at /docs/manual/rewrite/
&gt; index.html  Please take a look at it and let me know what you
&gt; think.

Reading the introduction, under "RewriteRule basics", I wonder how it
distinguishes between the first two kinds of substitution, a filesystem
path or a web-path, since they have pretty much the same syntax.  I
think this would be a good place for a hint about that.

-- 
Dan Poirier &lt;poirier@pobox.com&gt;


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: svn commit: r832310 - in /httpd/httpd/trunk/docs/manual/rewrite:	remapping.html.en remapping.xml</title>
<author><name>Bob Ionescu &lt;bobsiegen@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c553da56d0911030617p7c1ec9d6t63cdc5c15a4ab00a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c553da56d0911030617p7c1ec9d6t63cdc5c15a4ab00a@mail-gmail-com%3e</id>
<updated>2009-11-03T14:17:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
2009/11/3  &lt;rbowen@apache.org&gt;:
&gt; Author: rbowen
&gt; Date: Tue Nov  3 06:09:35 2009
&gt; New Revision: 832310
[...]
&gt; -RewriteRule   ^(.*)$  ${multiplex:&lt;strong&gt;%1&lt;/strong&gt;|www.example.com}$1
 [R,L]
&gt; +RewriteRule   ^(.*)$  ${multiplex:&lt;strong&gt;%1&lt;/strong&gt;|http://www.example.com/}$1
 [R,L]

I think the pattern should be ^/(.*) as well since the rule-set is
likely placed into server context due to the map definition. So one
will get example.com//foo or example.de//foo since both the map values
and the default value supply the leading slash of the URL-path
portion.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Rewrite flags</title>
<author><name>Mads Toftum &lt;mads@toftum.dk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c20091103094352.GB5072@cr%3e"/>
<id>urn:uuid:%3c20091103094352-GB5072@cr%3e</id>
<updated>2009-11-03T09:43:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Nov 02, 2009 at 09:19:35PM +0000, Vincent Bray wrote:
&gt; 2009/11/2 Rich Bowen &lt;rbowen@rcbowen.com&gt;:
&gt; &gt; A while back I started a rewrite/flags.html doc that purported to give
&gt; &gt; examples for the various flag that can be used with mod_rewrite.
&gt; &gt;
&gt; &gt; Straw poll - is this
&gt; &gt;
&gt; &gt; 1) a good idea
&gt; &gt; 2) merely unnecessarily duplicate the contents of the reference doc, drop it
&gt; &gt; 3) the reference doc should simply send folks off to rewrite/flags.html for
&gt; &gt; further details and examples
&gt; &gt;
&gt; &gt; I'm leaning towards 2 at the moment.
&gt; 
&gt; Perhaps 2) but give examples of usage for popular/confusing ones elsewhere?
&gt; 
+1 - I don't mind reference docs with good examples, but the opposite is
not a good thing.

vh

Mads Toftum
-- 
http://soulfood.dk

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Rewrite flags</title>
<author><name>Rich Bowen &lt;rbowen@rcbowen.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/httpd-docs/200911.mbox/%3c493CA890-9F95-451F-BB6D-55C71AE0188F@rcbowen.com%3e"/>
<id>urn:uuid:%3c493CA890-9F95-451F-BB6D-55C71AE0188F@rcbowen-com%3e</id>
<updated>2009-11-03T00:19:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 2, 2009, at 13:19 , Vincent Bray wrote:

&gt; 2009/11/2 Rich Bowen &lt;rbowen@rcbowen.com&gt;:
&gt;&gt; A while back I started a rewrite/flags.html doc that purported to  
&gt;&gt; give
&gt;&gt; examples for the various flag that can be used with mod_rewrite.
&gt;&gt;
&gt;&gt; Straw poll - is this
&gt;&gt;
&gt;&gt; 1) a good idea
&gt;&gt; 2) merely unnecessarily duplicate the contents of the reference  
&gt;&gt; doc, drop it
&gt;&gt; 3) the reference doc should simply send folks off to rewrite/ 
&gt;&gt; flags.html for
&gt;&gt; further details and examples
&gt;&gt;
&gt;&gt; I'm leaning towards 2 at the moment.
&gt;
&gt; Perhaps 2) but give examples of usage for popular/confusing ones  
&gt; elsewhere?


Opinion seems split fairly evenly between #2 and #3 (via discussion at  
ApacheCon) and I might be leaning back towards #3. Still not sure.  
Probably won't get to this issue today anyways.

--
Rich Bowen
rbowen@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org



</pre>
</div>
</content>
</entry>
</feed>
