On Thu, Jun 10, 2010 at 7:43 AM, Tapas Mishra <mightydre...@gmail.com> wrote:
> On Thu, Jun 10, 2010 at 4:34 PM, Eric Covener <cove...@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 ?

Don't use overlapping ProxyPass and RewriteRule w/ proxy if you can
avoid it.  Also, Using [R] and not substituting doesn't sound like a
good idea.  Finally, why is there a trailing slash on the
/application/ in the first rule?





>
> --
> 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-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to