Trying to configure reverse proxy. I do everything according to the instructions found on the Internet.

The problem is that I can not configure it so that access to the local server was using the 3rd level domain.

What am I doing:

  1. Created a local server (alias - test )
  2. I configure mapping - I set URL patterns for which, in my understanding, squid should be transferred to a local server.

External domain, for example, example.com , therefore I enter a template of this type http://test.example.com/ . That's not how it works. If you change the template to example.com (remove the 3rd level), then everything will work. When you enter the address get on your local server.

Why can't I manage with 3rd level domain? Where can I be wrong?

thank

  • Does the DNS on test.expamle.com give the same ip-address as on example.com? And I wonder why reverse proxy on such a monster as a squid, nginx as it will be easier - Mike
  • Thank. Your question led me to the right decision. A squid because I use a pfSense router, there is an opportunity to install the squid package and everywhere on the Internet that’s what they say to do. - Konstantin Pl

1 answer 1

Solved. It was in the DNS settings. Probably, you need to delegate my router correctly in order for it to correctly handle 3rd level domain addresses.

It was so that the name http://test.example.com/ did not exist anywhere and the client could not get the IP address of the name.

On my DNS hosting manually pointed test.example.com - my IP