Docker

From Geitenpad
Revision as of 08:52, 27 July 2019 by Rijk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When using a Docker container put Apache as proxy in front:

root@paardenpad:~# vim /etc/apache2/mods-enabled/proxy.conf
# MiWakeUpLight
<Location /miwakeuplight>
   Order deny,allow 
   Deny from all    
   Allow from 192.168.2.0/24
   ProxyPass http://172.17.0.2:8080/miwakeuplight
   ProxyPassReverse http://172.17.0.2:8080/miwakeuplight
</Location>

Take care to set context path equal, so miwakuplight runs on context path miwakuplight in container and on ppl.