Re: RewriteRule & jsessionid

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

 





On Wed, Nov 17, 2010 at 6:34 PM, Sébastien Moretti <sebastien.moretti@xxxxxxx> 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@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