У меня 3 сервера: -
- 172.16.112.31
- 172.16.112.32
- 172.16.112.33
Ставил apache ProxyPass на 172.16.112.31 и хотел бы вызвать другие два сервера, но он будет показывать пустую страницу, если я использую 172.16.112.31/xxx/
ниже моя конфигурация: -
<VirtualHost *:80>
ServerName speed.com
ServerAlias www.speed.com
ServerAdmin admin@speed.com
DocumentRoot /usr/local/apache2/speed
<Directory "/usr/local/apache2/speed">
Order allow,deny
AllowOverride All
Allow from all
Require all granted
</Directory>
#LoadModule ssl_module modules/mod_ssl.so
SSLProxyEngine on
ProxyPreserveHost On
ProxyRequests Off
#RewriteEngine On
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
ErrorLog logs/speed-error.log
CustomLog logs/speed-access.log combined
ProxyPass /agency http://172.16.112.32:5000/home retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse /agency http://172.16.112.32:5000/home
ProxyPass /admin http://172.16.112.32:3002 retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse /admin http://172.16.112.32:3002
ProxyPass /auth http://172.16.112.33:8080/auth retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse /auth http://172.16.112.33:8080/auth
ProxyPass /services http://172.16.112.33:8080/services retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse /services http://172.16.112.33:8080/services
ProxyPass /sennego http://172.16.112.31:3001 retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse /sennego http://172.16.112.31:3001
ProxyPass /account http://172.16.112.32:3000 retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse /account http://172.16.112.32:3000
ProxyPass / http://172.16.112.32:3000/ retry=1 acquire=3000 timeout=3000 Keepalive=On
ProxyPassReverse / http://172.16.112.32:3000/
пример, если я открываю агентство