Apache : rewrite loop to localhost redir Apps
In the pluto aka public
In the mars = public staging 2 NIC: 1 pub, 1 lan1
In the Jupiter : Apps server
Code:
<VirtualHost *:80> ServerName server.asterisk.noc.com.pluto RewriteEngine On RewriteRule ^(.*)$ http://localhost:8088$1 [P] UseCanonicalName On RewriteRule ^(.*)$ [L] </VirtualHost> [root@pluto ~]# ps x |grep 8088 4463 ? Ss 0:00 ssh -f -L 8088:localhost:8088 root@lan1-pub.mars sleep 2d
Code:
[root@mars ~]$ ps x |grep 8088 11430 pts/6 S+ 0:00 grep 8088 24623 ? Ss 0:00 ssh -f -L 8088:localhost:8088 root@lan1.jupiter sleep 2d [root@mars ~]$
Code:
[root@jupiter ~]# netstat -tanp |grep 8088 tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 6748/asterisk
Total Comments 0