How to configure forwardproxy for multiple websites?

1. My Caddy version (caddy version):

v1.0.4

2. My Caddyfile:

domain1.net
{
root /var/www/html1
tls xxxxx@gmail.com
forwardproxy {
basicauth user1 pass1
hide_ip
hide_via
probe_resistance
upstream http://127.0.0.1:1080
}
}
domain2.net
{
root /var/www/html2
tls xxxxx@gmail.com
forwardproxy {
basicauth user2 pass2
hide_ip
hide_via
probe_resistance
upstream http://127.0.0.1:1081
}
}

Configure the second Web site does not work!

Hi @ysbreh, welcome to the Caddy community.

Unfortunately “does not work” leaves us with a vast space of possible causes for your issue. To actually troubleshoot this, we’re going to need more information.

We’ve got your Caddy version and your current Caddyfile, but could you please fill out the rest of the Help forums template:

2. How I run Caddy:

a. System environment:

b. Command:

paste command here

c. Service/unit/compose file:

paste full file contents here

3. The problem I’m having:

4. Error messages and/or full log output:

5. What I already tried:

6. Links to relevant resources:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.