[Pound Mailing List] Newbee questions

Byron Paul <byron-tlftXoh1WHWS7RsuTa25K4b6sYpsOWKqpVcq4VOKrzs@public.gmane.org> Wed, 27 Jun 2018 10:45:40 +1200
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------50E324596F845DA309A94376
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit


Hi there, I have a couple of initial questions for the group which I'm 
hoping someone can help me with so I can start off in the right direction?

I have a number of IoT devices with web interfaces running non 
privileged port number that I want to try and consolidate into an easy 
to consume manner and I want to know if what I want to do is possible 
using pound? I already have pound accepting connections inbound and 
mapping to back end HTTP servers however only with mappings like 
https://host1.sample.com=>1.2.3.4:1880, 
https://host2.sample.com=>5.6.7.8:8080 etc..

What I would ideally like to be able to achieve is to map to URLs such 
as https://www.sample.com/host1 => http://1.2.3.4:8080, 
https://www.sample.com/host2 => http://5.6.7.8:1819 so that the URL is 
mapped rather than individual DNS host entries.

I have seen examples like from the man page below but haven't been able 
to figure out what is required to work within my requirements (or indeed 
if what I'm aiming to do is actually possible with pound)?

/ # Virtual host www.myserver.com//
//              Service//
//                  URL         ".*sessid=.*"//
//                  HeadRequire "Host:.*www.myserver.com.*"//
//                  BackEnd//
//                      Address 192.168.0.11//
//                      Port    80//
//                  End//
//                  Session//
//                      Type    URL//
//                      ID      "sessid"//
//                      TTL     120//
//                  End/

Does anyone have any advice or point to some config examples? Any advice 
kindly received :)

TIA,
Byron

--------------50E324596F845DA309A94376
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi there, I have a couple of initial questions for the group which
      I'm hoping someone can help me with so I can start off in the
      right direction?
      <div class="moz-forward-container">
        <p>I have a number of IoT devices with web interfaces running
          non privileged port number that I want to try and consolidate
          into an easy to consume manner and I want to know if what I
          want to do is possible using pound? I already have pound
          accepting connections inbound and mapping to back end HTTP
          servers however only with mappings like <a
            class="moz-txt-link-freetext"
            href="https://host1.sample.com=" moz-do-not-send="true">https://host1.sample.com=</a>&gt;1.2.3.4:1880,
          <a class="moz-txt-link-freetext"
            href="https://host2.sample.com=" moz-do-not-send="true">https://host2.sample.com=</a>&gt;5.6.7.8:8080
          etc..</p>
        <p>What I would ideally like to be able to achieve is to map to
          URLs such as <a class="moz-txt-link-freetext"
            href="https://www.sample.com/host1" moz-do-not-send="true">https://www.sample.com/host1</a>
          =&gt; <a class="moz-txt-link-freetext"
            href="http://1.2.3.4:8080" moz-do-not-send="true">http://1.2.3.4:8080</a>,
          <a class="moz-txt-link-freetext"
            href="https://www.sample.com/host2" moz-do-not-send="true">https://www.sample.com/host2</a>
          =&gt; <a class="moz-txt-link-freetext"
            href="http://5.6.7.8:1819" moz-do-not-send="true">http://5.6.7.8:1819</a>
          so that the URL is mapped rather than individual DNS host
          entries.<br>
        </p>
        I have seen examples like from the man page below but haven't
        been able to figure out what is required to work within my
        requirements (or indeed if what I'm aiming to do is actually
        possible with pound)?<br>
        <br>
        <i> # Virtual host <a class="moz-txt-link-abbreviated"
            href="http://www.myserver.com" moz-do-not-send="true">www.myserver.com</a></i><i><br>
        </i><i>              Service</i><i><br>
        </i><i>                  URL         ".*sessid=.*"</i><i><br>
        </i><i>                  HeadRequire "Host:.*www.myserver.com.*"</i><i><br>
        </i><i>                  BackEnd</i><i><br>
        </i><i>                      Address 192.168.0.11</i><i><br>
        </i><i>                      Port    80</i><i><br>
        </i><i>                  End</i><i><br>
        </i><i>                  Session</i><i><br>
        </i><i>                      Type    URL</i><i><br>
        </i><i>                      ID      "sessid"</i><i><br>
        </i><i>                      TTL     120</i><i><br>
        </i><i>                  End</i><br>
        <br>
        Does anyone have any advice or point to some config examples?
        Any advice kindly received :)<br>
        <br>
        TIA,<br>
        Byron<br>
      </div>
    </div>
  </body>
</html>

--------------50E324596F845DA309A94376--

--
To unsubscribe send an email with subject unsubscribe to [email protected]
Please contact [email protected] for questions.