/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-11 / Re: [Pound Mailing List] URL casading Issue

[ << ] [ >> ]

[ URL casading Issue / Dhiraj Gaur ... ] [ Benchmarking Pound SSL with a self signed cert / ... ]

Re: [Pound Mailing List] URL casading Issue
"Simon Matter" <simon.matter(at)invoca.ch>
2009-11-16 08:56:44 [ FULL ]
> Hi all[...]
Hi,

I was just wondering about your URL directive and the one I'm using on my
own sites. Maybe I just didn't care enough but for the line you have

URL "^/sr2enotesheet\/*"

mine would look like

URL "/sr2enotesheet/.*"

Now I wondering why I'm not escaping / and why I'm not marking beginning
of the line with ^?

Did you try the version used in the manpage, which mine is based on?

Regards,
Simon

[...]

Re: [Pound Mailing List] URL casading Issue
Dhiraj Gaur <dhiraj.gaur(at)gmail.com>
2009-11-16 09:08:43 [ FULL ]
HI
I intially started off with a URL "^/sr2enotesheet" but then the tweaks led
me to the current thing URL "^/sr2enotesheet\/*".
Both give me the same error. :(

Regards
Dhiraj Gaur

On Mon, Nov 16, 2009 at 1:26 PM, Simon Matter
<simon.matter(at)invoca.ch>wrote:
[...]
Attachments:  
text.html text/html 3675 Bytes

Re: [Pound Mailing List] URL casading Issue
Dhiraj Gaur <dhiraj.gaur(at)gmail.com>
2009-11-16 09:23:16 [ FULL ]
(at)Simon: Yes used the manpage example initially but then I found that i need
to map various different location servers on a single Public IP. Thus I have
a rather long pound.cfg file. I am attaching the complete file for your
reference

Attaching error details

On the browser I get the error
"The service is not available. Please try again later."

while in the syslog I get this error
pound : no back-end "GET /sr2notesheet/ HTTP/1.0"

Although I can browse the backend fine from the pound server web browser.

I believe pound is getting confused between sr2 and sr2enotesheet.

Regards

Dhiraj gaur

On Mon, Nov 16, 2009 at 1:38 PM, Dhiraj Gaur <dhiraj.gaur(at)gmail.com>
wrote:
[...]
Attachments:  
text.html text/html 5145 Bytes
pound.cfg application/octet-stream 2694 Bytes

Re: [Pound Mailing List] URL casading Issue
Fabian =?UTF-8?B?TsO2bGRnZW4=?= <fnoeldgen(at)magellan-net.de>
2009-11-16 09:25:00 [ FULL ]
Hi,

Dhiraj Gaur <dhiraj.gaur(at)gmail.com> wrote:[...]

[...]
[...]

Shouldn't the URL-regex read something like 

"^/sr2enotesheet\/.*" and "^/sr2\/.*"

instead of

"^/sr2enotesheet\/*" and "^/sr2\/*"

Usually ".*" means "no matter which character (.) and how many (*)".
Your "/*" means "no matter how many /". Your regex would
match "/sr2//////" but not "/sr2/abcde". Same for the other URL.

Best regards,
Fabian

Re: [Pound Mailing List] URL casading Issue
Dhiraj Gaur <dhiraj.gaur(at)gmail.com>
2009-11-16 09:44:11 [ FULL ]
Thanks Fabian for the reply. I ll re-describe the problem.

Case 1 : When i have a URL "^/sr2" and URL "^/sr2enotesheet" for two diff
backends, pound sends the requests meant
sr2enotesheet to sr2 ie the URL matching is not effective and thus i get a
404 error.

case 2: When i have a URL "^/sr2/*" and URL "^/sr2enotesheet/*, in this case
the sr2 one works fine but I get an error as "Pound: no backend" for
sr2enotesheet requests.


Would greatly appreciate if someone can point me to a regex document for
URL.

Regards

Dhiraj


On Mon, Nov 16, 2009 at 1:53 PM, Dhiraj Gaur <dhiraj.gaur(at)gmail.com>
wrote:
[...]
Attachments:  
text.html text/html 6882 Bytes

Re: [Pound Mailing List] URL casading Issue
"Simon Matter" <simon.matter(at)invoca.ch>
2009-11-16 09:59:48 [ FULL ]
> (at)Simon: Yes used the manpage example initially but then I found that
i[...]

I hope that's a type        ^^^^^^^
Because you refer to "^/sr2enotesheet" in your config.

Simon
[...][...][...]

Re: [Pound Mailing List] URL casading Issue
Robert Segall <roseg(at)apsis.ch>
2009-11-17 18:04:10 [ FULL ]
On Mon, 2009-11-16 at 14:14 +0530, Dhiraj Gaur wrote:[...]

I think you may want to read a bit about regular expressions.

In your case "^/sr2" (as well as "^/sr2/*") will match
"^/sr2enotesheet". Since the first URL is specified before the second,
that is where your request will go (Pound does first match).[...]

Re: [Pound Mailing List] URL casading Issue
Dhiraj Gaur <dhiraj.gaur(at)gmail.com>
2009-11-18 04:23:26 [ FULL ]
Hi Robert
Thanks for the reply. I have resolved the issue. The problem was two folds.
One the proper port on my firewall was not defined( $#$% for the firewall
admin) and Two , yes there was this regex issue for sure.To achieve the
desired effect i am now using simply sr2 in one backend while
^/sr2enotesheet in the other one. Works like a charm now. :)

Thank you for your support. Pound Team ROCKS!!!.

One question When is the next version expected coz I could not locate the
pound roadmap ? I am asking this as there are many forums which point me to
Ngnix for similar requirements.

Regards
Dhiraj Gaur

On Tue, Nov 17, 2009 at 10:34 PM, Robert Segall <roseg(at)apsis.ch>
wrote:
[...]
Attachments:  
text.html text/html 2311 Bytes

Re: [Pound Mailing List] SSL Renegotiation Vulnerability
Ondra Kudlik <kepi(at)orthank.net>
2009-11-20 01:52:38 [ FULL ]
Čt, lis 12, 2009 ve 04:55:22 +0100, Robert Segall napsal:[...]

We all hope it will be, but is there any possiblity you make a
workaround on this directly in Pound while waiting? By workaround I
mean just disable renegotiation in pound.

Whole problem is that not everybody is able to use newest version of
openssl which disable renegotiations at all (not enough skills to 
compile it for distributions or fear that it breaks many other applications).

Thanks for considering

Ondra 'Kepi' Kudlik

MailBoxer