I have a host for which I have its public IP address. I'd like to use this public IP to redirect the FTP access to an FTP running on another host.
Example: Consider the host for which I have the public IP access has private IP 0.0.0.0 and its public IP is 188.8.131.52. Considering also the FTP server with private IP 184.108.40.206, I'd like to redirect the accesses ftp://220.127.116.11:21 to ftp://18.104.22.168:21, in a way the FTP will be accessed by using the available public IP.
I tried to configure and enable httpd virtual host on 0.0.0.0 host as below:
<VirtualHost *:21> ServerName 22.214.171.124 ErrorLog /var/log/httpd/ftp_error.log CustomLog /var/log/httpd/ftp_requests.log combined LogLevel debug ProxyPass / ftp://126.96.36.199:21/ ProxyPassReverse / ftp://188.8.131.52:21/ </VirtualHost>
But the request to ftp://184.108.40.206:21 fails. Do you have any suggestion?
Thanks in advance