httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapas Mishra <mightydre...@gmail.com>
Subject Re: [users@httpd] rewrite rule for mingle
Date Thu, 10 Jun 2010 11:43:38 GMT
On Thu, Jun 10, 2010 at 4:34 PM, Eric Covener <covener@gmail.com> wrote:
>>
> Try adding the R flag  on the first RewriteRule.
Ok it did seem to do some thing.
Actually the application is not developed by me.When some one types on LAN
http://192.168.1.10:8080

a welcome screen comes that is of mingle.
After that it automatically replaces the above url as

http://192.168.1.10:8080/user/profile

In this condition if some one accesses it on internet

http://site1.mydomain.com/application

then he should get a page

which has in URL /application but the contact from backend server
should be hidden.

This is now the new ReWriteRule

        ProxyRequests off
        <Proxy *>
        Order deny,allow
        Allow from all
        </Proxy>
        ProxyPass / http://192.168.1.10
        ProxyPassReverse / http://192.168.1.10

        <IfModule mod_rewrite.c>
         ReWriteEngine on
         ReWriteRule /application/(.*) - [R]
         RewriteRule ^/application(.*)
http://site1.mydomain.com:8080/user/profile/$1 [P,L]
         </IfModule>


Any suggestions ?

-- 
Tapas

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message