You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jf...@apache.org on 2017/10/02 09:18:50 UTC

svn commit: r1810316 - in /httpd/httpd/trunk/docs/manual/mod: mod_proxy.html.en mod_proxy.xml

Author: jfclere
Date: Mon Oct  2 09:18:50 2017
New Revision: 1810316

URL: http://svn.apache.org/viewvc?rev=1810316&view=rev
Log:
Add a warning for host starting with a letter.
Fix for PR 61540.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_proxy.html.en
    httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy.html.en?rev=1810316&r1=1810315&r2=1810316&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy.html.en Mon Oct  2 09:18:50 2017
@@ -319,6 +319,14 @@ ProxyPass "/examples" "http://backend.ex
 
       </div> 
 
+      <div class="warning"><h3>Host part in the URL</h3>
+        <p>The host part needs to start with a letter [a-z]. For example:</p>
+        <pre class="prettyprint lang-config">ProxyPass "/apps"     "http://127"</pre>
+
+        <p>is not valid and will cause an error while processing a request that
+        maps the path.</p>
+      </div>
+
       <p>Explicitly configured workers come in two flavors:
       <dfn>direct workers</dfn> and <dfn>(load) balancer workers</dfn>.
       They support many important configuration attributes which are

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml?rev=1810316&r1=1810315&r2=1810316&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy.xml Mon Oct  2 09:18:50 2017
@@ -281,6 +281,15 @@ ProxyPass "/examples" "http://backend.ex
 
       </note> <!-- /worker_sharing -->
 
+      <note type="warning"><title>Host part in the URL</title>
+        <p>The host part needs to start with a letter [a-z]. For example:</p>
+        <highlight language="config">
+ProxyPass "/apps"     "http://127"
+        </highlight>
+        <p>is not valid and will cause an error while processing a request that
+        maps the path.</p>
+      </note>
+
       <p>Explicitly configured workers come in two flavors:
       <dfn>direct workers</dfn> and <dfn>(load) balancer workers</dfn>.
       They support many important configuration attributes which are



Re: svn commit: r1810316 - in /httpd/httpd/trunk/docs/manual/mod: mod_proxy.html.en mod_proxy.xml

Posted by jean-frederic clere <jf...@gmail.com>.
On 10/02/2017 12:40 PM, Yann Ylavic wrote:
> On Mon, Oct 2, 2017 at 12:29 PM, Yann Ylavic <yl...@gmail.com> wrote:
>>
>> On Mon, Oct 2, 2017 at 11:18 AM,  <jf...@apache.org> wrote:
>>> Author: jfclere
>>> Date: Mon Oct  2 09:18:50 2017
>>> New Revision: 1810316
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1810316&view=rev
>>> Log:
>>> Add a warning for host starting with a letter.
>>> Fix for PR 61540.
>>
>> It's not exactly the host that must start with a letter, but the TLD.
>> For instance, "127.x34" is a valid host, but indeed "127" isn't (as a sole TLD).
> 
> Nevermind, I forgot the discussion we had (linked in the PR).
> The consensus was to document the current behaviour only, so be it ;)

Actually it is not starting with a letter that is the problem, it needs
to be a valid IP or a host/balancer name that contains at least a
letter... and if a balancer name it can't contain a ':'

Any proposal for a better wording?

Cheers

Jean-Frederic

> 
>>
>>
>> Regards,
>> Yann.
> 


Re: svn commit: r1810316 - in /httpd/httpd/trunk/docs/manual/mod: mod_proxy.html.en mod_proxy.xml

Posted by Yann Ylavic <yl...@gmail.com>.
On Mon, Oct 2, 2017 at 12:29 PM, Yann Ylavic <yl...@gmail.com> wrote:
>
> On Mon, Oct 2, 2017 at 11:18 AM,  <jf...@apache.org> wrote:
>> Author: jfclere
>> Date: Mon Oct  2 09:18:50 2017
>> New Revision: 1810316
>>
>> URL: http://svn.apache.org/viewvc?rev=1810316&view=rev
>> Log:
>> Add a warning for host starting with a letter.
>> Fix for PR 61540.
>
> It's not exactly the host that must start with a letter, but the TLD.
> For instance, "127.x34" is a valid host, but indeed "127" isn't (as a sole TLD).

Nevermind, I forgot the discussion we had (linked in the PR).
The consensus was to document the current behaviour only, so be it ;)

>
>
> Regards,
> Yann.

Re: svn commit: r1810316 - in /httpd/httpd/trunk/docs/manual/mod: mod_proxy.html.en mod_proxy.xml

Posted by Yann Ylavic <yl...@gmail.com>.
Hi Jean-Frédéric,

On Mon, Oct 2, 2017 at 11:18 AM,  <jf...@apache.org> wrote:
> Author: jfclere
> Date: Mon Oct  2 09:18:50 2017
> New Revision: 1810316
>
> URL: http://svn.apache.org/viewvc?rev=1810316&view=rev
> Log:
> Add a warning for host starting with a letter.
> Fix for PR 61540.

It's not exactly the host that must start with a letter, but the TLD.
For instance, "127.x34" is a valid host, but indeed "127" isn't (as a sole TLD).


Regards,
Yann.