Re: [users@httpd] Reverse Proxy and SSI from Back-End Apache

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

 



On 11/9/05, Joshua Slive <jslive@xxxxxxxxx> wrote:
On 11/8/05, Devendra Singh <dee.ess@xxxxxxxxx> wrote:
> But, the problem is that when I try to access
> http://ds.india.noida/dstest.html the SSI
> /mycomps/testsuccess.html also gets parsed from the Front Apache.

Or, in other words, subrequests are not getting proxied.
 
Yes, SubRequests are not getting Proxied from SSI calls.

>    RewriteEngine On
>    RewriteRule \.(gif|jpg|png|txt|css|js|ico|swf)$ [OR]
>    RewriteRule !\/mycomps\/.* - [last]
>    RewriteRule ^/(.*)$ http://ds.india.noida:8080/$1 [proxy]

This looks quite bogus to me.  As far as I know, there is no [OR]
option to RewriteRule.  And you shouldn't be escaping forward slashes
in your regex.  I'm surprised this works at all.
 
Yes, it works. However, if I comment the line:
#RewriteRule \.(gif|jpg|png|txt|css|js|ico|swf)$ [OR]
 
that also suits my purpose.
 
About escaping of forward slashes, point noted, Thanks.
 

On the original problem of subrequests and proxies, I don't recall
whether or not this works correctly.  I imagine it should.
 
But, the original problem still remains. How do I force the subrequest due to SSI call from within a request getting served from Front Apache to go to Back Apache?

Joshua.

Thanks Joshua for your response.
 
But, I am still waiting for more expert hints.
 
DS
 

[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