-
Hi, Thank you for this software!
I've successfully setup one of my services, but when I setup another, I just get the first service. I suspect this is because the TARGET doesn't include information about the original hostname that the client used and is just using Any suggestions? Any way I can specify a hostname variable for the TARGET? Otherwise I suppose I'd have to run multiple Anubis instances (one per service). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I just realized that specifying a hostname in the TARGET won't work. At least it didn't work like I had assumed. I had to create separate instances along with different listening and targeting ports. Unless I'm doing something wrong. |
Beta Was this translation helpful? Give feedback.
-
There's not really a good answer here until #555 is addressed, which will require some re-thinking and major refactoring. Multiple Anubis instances is the best solution I have right now. |
Beta Was this translation helpful? Give feedback.
-
I don't understand exactly what you mean by “I've successfully setup one of my services, but when I setup another, I just get the first service.” I'm guessing Anubis follows the hostname with the request, and normally, that's all Apache needs to select a virtual host, right? Or maybe the issue has been fixed since June 30th? :-) |
Beta Was this translation helpful? Give feedback.
-
I am sharing one Anubis instance between multiple apache Virtualhosts on a server, and it's working fine for me. All Apache 2.4 servers use NameVirtualHost by default and so should Just Work. If you are running an Apache version < 2.4, then you need to explicitly tell it that (e.g. With HTTP proxying, the hostname is usually specified in the HTTP HOST header. In terms of the proxy connection (what TARGET= points at), the only thing that really matters there is that it connects to the correct IP address (usually localhost) and port. Beyond that, it's the HOST header's job to tell Apache what site to get, which is inside the HTTP request. (HTTP is setup self-contained this way so that this proxying can happen multiple times and things will still work, even if some clients/servers are not aware of proxy layers). So.. you should not need a separate anubis service for each site, unless you want to keep the challenge database separate between them (probably you just want to stop bots and that being shared per-apache is fine for you, or possibly even a desirable feature as it will block them on all sites if they fail challenges on one). I like to create one instance per Apache server and just leave it at that. |
Beta Was this translation helpful? Give feedback.
There's not really a good answer here until #555 is addressed, which will require some re-thinking and major refactoring. Multiple Anubis instances is the best solution I have right now.