Comments (10)
Please apply this patch as well: 62f59fe
from pound.
Yes, it's OK. Service directives (and ACME is a special case of Service) are processed in the order in which they are defined in the configuration file. So, in your config, the requests destined for someotherhost.example.com will be proxied to 192.168.1.22:80. One minor point, though: instead of
HeadRequire
I'd suggest using Host
, like that:
Host "someotherhost.example.com"
from pound.
Nice idea. I've enabled it. I'm closing this issue then.
from pound.
Thanks for reporting that. The problem is that pound tries to open the acme directory too late (after chrooting), and then it is already not visible. I fixed this in commit c2fb6ae. Please pull and give it a try.
from pound.
Downloaded the repo, unzipped in a separate directory, followed the steps from the readme but getting an error with make
:
root@bsd123:~/pound-4.6-dev # make
make all-recursive
Making all in src
make all-am
cc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/usr/local/etc\" -DLOCALSTATEDIR=\"/usr/local/var\" -DPKGDATADIR=\"/usr/local/share/pound\" -g -O2 -pthread -g -O2 -MT poundctl.o -MD -MP -MF .deps/poundctl.Tpo -c -o poundctl.o poundctl.c
mv -f .deps/poundctl.Tpo .deps/poundctl.Po
make[3]: don't know how to make ./libpound.a. Stop
make[3]: stopped in /root/pound-4.6-dev/src
*** Error code 2
*** Error code 1
*** Error code 1
Didn't experience this with the release (4.6).
All defaults, no special stuff with .configure
.
from pound.
Success!
from pound.
A question related to ACME: is the order of the objects defined in the configuration taken into account during operation?
I mean, is the config processed like most firewalls do, like from top to bottom first match applies?
Because, in my case, I have an ACME configuration running on the same machine with pound
, however, I also have a few machines which are handling their own ACME certificate renewal procedures, their encryption stuff is not handled by pound
(certs are used for some other kind of communication on different ports). But they still need to be reachable directly by Let's Encrypt on HTTP port 80 for the challenge, which is occupied by pound
.
So for these, I'd just set up simple ListenHTTP
service backends without redirect to HTTPS, and pound
shouldn't intercept .well-known/acme-challenge
for them.
If you look at the config above, that was my attempt. someotherhost.example.com
would be matched by a service before the ACME
directive, which wouldn't process it.
Do you think that's fine like that?
Or maybe ACME should accept a list witch services to skip?
from pound.
Thank you. Meanwhile I've found in the doc: Services are tried in the same order as they are defined in configuration. It would be very nice if this feature would remain in the future.
instead of
HeadRequire
I'd suggest usingHost
Thanks, I've changed all my services to the new syntax.
from pound.
Sure, it will remain so.
from pound.
Just a tip: maybe you'd like to enable Discussions function for this repo so we don't spam your issues with Q&A.
from pound.
Related Issues (20)
- Unable to delete pid file when not running as root HOT 10
- Codespell report for "pound" (on fossies.org) HOT 3
- Multiple "Can't read BIO_f_base64" in log HOT 2
- Create release of prerelease versions? HOT 3
- Add to homebrew? HOT 10
- Backed does not come back from dead status HOT 28
- Pound forwards requests with multiple `Transfer-Encoding: chunked` headers HOT 2
- Pound forwards chunk sizes prefixed with `0x`, `-`, and `+` HOT 1
- Pound forwards requests with invalid whitespace around chunk sizes HOT 1
- openssl 0A000438 error and Caddy servers HOT 8
- [FR] response headers modification HOT 3
- Segmentation fault with pound 4.11 on OpenSUSE HOT 4
- Pound forwards messages containing unrecognized transfer codings
- Pound forwards requests containing both `Transfer-Encoding` and `Content-Length` headers
- "error copy client cont" error HOT 8
- HeadRemove Bad Response & Include no longer supported in ListenHTTPS section HOT 7
- GPF after a short time HOT 5
- Different behaviour in URL parsing between versions of libpcre? HOT 12
- Small logging patch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pound.