Re: rewrite rule for mingle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 10, 2010 at 7:43 AM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
> On Thu, Jun 10, 2010 at 4:34 PM, Eric Covener <covener@xxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>



-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux