[SFS] Fwd: proxy learns
David L. Willson
DLWillson@TheGeek.NU
Thu, 31 Mar 2016 22:12:07 -0600 (MDT)
------=_Part_35239_26010978.1459483927662
Content-Type: multipart/alternative;
boundary="----=_Part_35240_19377595.1459483927662"
------=_Part_35240_19377595.1459483927662
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
I dunno if the attachments will get through, but if they do... I'm pretty proud of this. myproxy.conf is a config snippet you can drop into your Apache conf.d/ (/etc/httpd/conf.d/ or /etc/apache/conf.d/ or similar) and it web-proxies names to ports on localhost. The proof is a session-log of a walk-through, showing how all the parts might fit together and demonstrating their function.
What this basically does is allow you to web-proxy from port 80 on your host to any number of guests/containers/services running on other ports.
Want to run 48 dockers on your machine? OK. Bind each one's port 80 to some unique port and then web-proxy a name to that port. Want to call ElasticSearch as es, rather than localhost:9200? Just proxy the name to the port.
And Ross, I did it on OpenSUSE. I'm warming myself up for my LFCS exam on the 9th.
--
David L. Willson
Teacher, Engineer, Evangelist
RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 Ubuntu_CP SUSE_CLA
Mobile 720-333-LANS(5267)
http://sofree.us
This is a good time for a r3VOLution.
----- Forwarded Message -----
------=_Part_35240_19377595.1459483927662
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><=
div style=3D'font-family: times new roman,new york,times,serif; font-size: =
12pt; color: #000000'>I dunno if the attachments will get through, but if t=
hey do... I'm pretty proud of this. myproxy.conf is a config snippet you ca=
n drop into your Apache conf.d/ (/etc/httpd/conf.d/ or /etc/apache/conf.d/ =
or similar) and it web-proxies names to ports on localhost. The proof is a =
session-log of a walk-through, showing how all the parts might fit together=
and demonstrating their function.<br><br>What this basically does is allow=
you to web-proxy from port 80 on your host to any number of guests/contain=
ers/services running on other ports.<br><br>Want to run 48 dockers on your =
machine? OK. Bind each one's port 80 to some unique port and then web-proxy=
a name to that port. Want to call ElasticSearch as es, rather than localho=
st:9200? Just proxy the name to the port.<br><br>And Ross, I did it on Open=
SUSE. I'm warming myself up for my LFCS exam on the 9th.<br><br><div><span =
name=3D"x"></span>--<br>David L. Willson<br>Teacher, Engineer, Evangelist<b=
r>RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 Ubuntu_CP SUSE_CLA<br>Mobil=
e 720-333-LANS(5267)<br>http://sofree.us<br><br>This is a good time for a r=
3VOLution.<span name=3D"x"></span><br></div><br><hr id=3D"zwchr"><blockquot=
e style=3D"border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;c=
olor:#000;font-weight:normal;font-style:normal;text-decoration:none;font-fa=
mily:Helvetica,Arial,sans-serif;font-size:12pt;">
<style style=3D"display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></=
style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;back=
ground-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
</div>
</blockquote><br></div></body></html>
------=_Part_35240_19377595.1459483927662--
------=_Part_35239_26010978.1459483927662
Content-Type: application/octet-stream; name=myproxy.conf
Content-Disposition: attachment; filename=myproxy.conf
Content-Transfer-Encoding: base64
IyBhcGFjaGUgbmFtZS10by1wb3J0IHByb3h5IGNvbmZpZ3VyYXRpb24NCiMgY2Y6DQojIC0gaHR0
cHM6Ly9odHRwZC5hcGFjaGUub3JnL2RvY3MvY3VycmVudC9tb2QvbW9kX3Byb3h5Lmh0bWwNCiMg
LSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9Nb2RfcHJveHkNCiMgLQ0KIyBOb3QgYWxs
b3dlZC4gQ2F1c2VzIGFwYWNoZSB0byBjcmFzaC4NCiMgTGlzdGVuIDgwDQoNCiMgTm90IG5lZWRl
ZDogaHR0cDovL3NlcnZlcmZhdWx0LmNvbS9xdWVzdGlvbnMvNTc2OTM5L25hbWV2aXJ0dWFsaG9z
dC1oYXMtbm8tZWZmZWN0IzU3Njk0MQ0KIyBOYW1lVmlydHVhbEhvc3QgKjo4MA0KDQoNCjxJZk1v
ZHVsZSAhcHJveHlfbW9kdWxlPg0KICBMb2FkTW9kdWxlIHByb3h5X21vZHVsZSAgICAgIC91c3Iv
bGliNjQvYXBhY2hlMi9tb2RfcHJveHkuc28NCjwvSWZNb2R1bGU+DQoNCjxJZk1vZHVsZSAhcHJv
eHlfaHR0cF9tb2R1bGU+DQogIExvYWRNb2R1bGUgcHJveHlfaHR0cF9tb2R1bGUgL3Vzci9saWI2
NC9hcGFjaGUyL21vZF9wcm94eV9odHRwLnNvDQo8L0lmTW9kdWxlPg0KDQo8VmlydHVhbEhvc3Qg
Kjo4MD4NCiAgUHJveHlQcmVzZXJ2ZUhvc3QgT24NCiAgUHJveHlQYXNzIC8gaHR0cDovLzEyNy4w
LjEuMTo4MDAwDQogIFByb3h5UGFzc1JldmVyc2UgLyBodHRwOi8vMTI3LjAuMS4xOjgwMDANCiAg
U2VydmVyTmFtZSBmaWxlcy5kbHcudGVzdA0KPC9WaXJ0dWFsSG9zdD4NCg0KDQo8VmlydHVhbEhv
c3QgKjo4MD4NCiAgUHJveHlQcmVzZXJ2ZUhvc3QgT24NCiAgUHJveHlQYXNzIC8gaHR0cDovLzEy
Ny4wLjEuMTo4MDgwDQogIFByb3h5UGFzc1JldmVyc2UgLyBodHRwOi8vMTI3LjAuMS4xOjgwODAN
CiAgU2VydmVyTmFtZSBsb2NhZGV2LmRsdy50ZXN0DQo8L1ZpcnR1YWxIb3N0Pg0KDQo8VmlydHVh
bEhvc3QgKjo4MD4NCiAgRG9jdW1lbnRSb290ICIvc3J2L3d3dy9odGRvY3MiDQogIFNlcnZlck5h
bWUgb3RoZXJ0aGluZ3MuZGx3LnRlc3QNCiAgU2VydmVyQWxpYXMgKi5kbHcudGVzdA0KPC9WaXJ0
dWFsSG9zdD4NCg==
------=_Part_35239_26010978.1459483927662
Content-Type: application/octet-stream; name=myproxy.proof
Content-Disposition: attachment; filename=myproxy.proof
Content-Transfer-Enc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