Pound : URL Redirection2021/08/16 |
This is the Redirection setting by URL matching.
This example is based on the environment like follows. -----------+---------------------------+--------------------------+------------ | | | |10.0.0.30 |10.0.0.51 |10.0.0.52 +----------+-----------+ +-----------+----------+ +-----------+----------+ | [ dlp.srv.world ] | | [ node01.srv.world ] | | [ node02.srv.world ] | | Pound | | Web Server#1 | | Web Server#2 | +----------------------+ +----------------------+ +----------------------+ |
On this example, requests to the URL [dlp.srv.world] are forwarded to [Web Server#1]
and other all requests except the URL [dlp.srv.world] are forwarded to [Web Server#2]. ( based on the basic settings of the example here ) |
|
[1] | Configure Pound. |
[root@dlp ~]#
vi /etc/pound.cfg
User "pound"
Group "pound"
LogLevel 3
LogFacility local1
Alive 30
ListenHTTP
Address 0.0.0.0
Port 80
End
ListenHTTPS
Address 0.0.0.0
Port 443
Cert "/etc/letsencrypt/live/dlp.srv.world/pound.pem"
End
Service
# define dlp.srv.world
HeadRequire "Host: .*dlp.srv.world"
BackEnd
Address 10.0.0.51
Port 80
Priority 5
End
End
Service
# others except dlp.srv.world above
HeadRequire "Host: .*"
BackEnd
Address 10.0.0.52
Port 80
Priority 5
End
End
[root@dlp ~]# systemctl restart pound |
[2] | Verify working normally to access to frontend Pound Server. |
Sponsored Link |
|