availability: January 2010
Developers ----> Vmware Server ----> Virtual Machine 1
Putty, Winsp Apache SSHD (ip-vm1)
with ----> Virtual Machine 2
Mod_Proxy SSHD (ip-vm2)
(ip-server)
To setup apache as reverse proxy you need to have mod_ssl installed.
# yum install mod_sslCreate a file ssh-proxy.conf in /etc/httpd/conf.d/
<virtualhost *:443>
ServerAdmin webmaster@localhost
ProxyRequests On
ProxyVia On
#Add ports you want to be able to connect to through your proxy here
AllowCONNECT 22
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ErrorLog /var/log/httpd/proxy-error.log
TransferLog /var/log/httpd/proxy-transfer.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice
</virtualhost>
Activate the proxy_module and proxy_connect module in your /etc/httpd/httpd.conf
LoadModule proxy_balancer_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.soNow you can restart your apache and it should be running now
# apachectl restartTo use it with putty: (as described in http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter4.html#config-proxy