httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sai A <arialwi...@gmail.com>
Subject Re: [users@httpd] RewriteRule & jsessionid
Date Wed, 17 Nov 2010 13:51:26 GMT
On Wed, Nov 17, 2010 at 6:34 PM, S├ębastien Moretti <
sebastien.moretti@unil.ch> wrote:

> Hi
>
> I experience some problem with apache, mod_rewrite and mod_proxy.
> I get some timeouts that deny access to the server.
> Here is the error message I get:
>
> (70007)The timeout specified has expired: proxy: error reading status line
> from remote server XXX
> [Wed Nov 17 11:57:09 2010] [error] [client 130.223.50.57] proxy: Error
> reading from remote server returned by
> /YYY/yyy;jsessionid=CB0770CE21131F029565895AC72B921E
>
>
> It happens when I set this particular rule:
> RewriteRule ^/YYY/yyy(.+)  /YYY/yyy$1  [P]
>
> To me, this rule doesn't make sense. You are rewriting it to be the same
thing as before.


>
> In fact, I want to mask YYY/yyy in URLs, and create an internal, silent,
> redirection.
> e.g.: http://abc.ch/?smth
> would be in fact
>      http://XXX/YYY/yyy?smth
>
> you are reverse proxying from a different host then that host should get
mentioned in the rule.

E.g
NameVirtualHost *:80

<VirtualHost *:80?
ServerName abc.ch

RewriteEngine on
RewriteRule / http://XXX/YYY/yyy/ [P,QSA]

</VirtualHost>

QSA would add the query string from the original URL to the rewritten URL.



> Maybe I do something wrong. The rule could certainly be more properly
> written.
> But on our development server, I don't get the problem (but apache versions
> and configurations are a bit different).
>
>
> Any idea ?
>
> --
> S├ębastien Moretti
>
> ---------------------------------------------------------------------
> 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