LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > routers
User Name
Password

Notices


Rate this Entry

Apache : rewrite loop to localhost redir Apps

Posted 12-18-2011 at 05:24 AM by routers
Updated 12-18-2011 at 05:30 AM by routers (NOB)

In the pluto aka public
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
In the mars = public staging 2 NIC: 1 pub, 1 lan1
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 ~]$
In the Jupiter : Apps server

Code:
[root@jupiter ~]# netstat -tanp |grep 8088
tcp        0      0 0.0.0.0:8088         0.0.0.0:*        LISTEN      6748/asterisk
Posted in Uncategorized
Views 1866 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration