Reverse Proxy Issue

hamid.sattar

New Member
Joined
Apr 14, 2021
Messages
10
Reaction score
0
Credits
98
Hello!

I am configuring apache2 on debian 11 as revrese proxy server.
but it's not working.

I am running apache1 on port 9080 for http and 4430 for https on server 192.168.10.10. server name: tech01.ddns.net
I am also running a website on nginx on port 80 on http. tech02.ddns.net is website on nginx. on the same server 192.168.10.10.

So I want any request on http://tech01.ddns.net on apache2 will proxy to http:tech02.ddns.net


My virtualhost configurations is below on apache2:
<VirtualHost *:9080>

ServerName tech01.ddns.net
ProxyPreserveHost on
ProxyPass / http://192.168.10.10:80/var/www/tech02.ddns.net/
ProxyPassReverse / http://192.168.10.10:80/var/www/tech02.ddns.net/
ErrorLog ${APACHE_LOG_DIR}/tech01.ddns.net-error.log
CustomLog ${APACHE_LOG_DIR}/tech01.ddns.net-access.log combined
</VirtualHost>

Can someone check if I configured virtual host properly? As it is not working.
Error:

504 Gateway Time-out​

nginx/1.18.0
 

Members online


Top