<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">I'm not sure how familiar you
are with regex but just in case and if perhaps others are reading and
it helps,<br>
<br>
</font>location ~ /pma/.+\.php$ <br>
<br>
~ means use regex to match the location<br>
it starts by matching /pma/š and then .+ means one or more of any char<br>
$ means the pattern has to end with .php <br>
and the \. just escapes the . so it isn'tš any char like above<br>
this one has no brackets () so it doesn't capture any data<br>
<br>
next,<br>
<br>
rewriteš ^/pma(/.+)$š $1š break;
<br>
<br>
the ^ means matching from the start of line<br>
the brackets () mean capture what matches inside them<br>
in this case capture / and one ore more of any char<br>
since the capture ends up against the $ that means capture all til the
end of line<br>
the $1 will containš whatever was captured in the part above<br>
and break means stop looking if this matches<br>
<br>
rewrite means to match the first expression and rewrite as second
expression<br>
so here since the second part is simply $1 it means whatever is
captured by the brackets will be the entire result of the rewrite<br>
hence, here it isš "/ plus anything after" but drops the part not in
the capture<br>
<br>
hope that helps... just looking to give back a wee little to the list.<br>
<br>
Chris :)<br>
<br>
<br>
<font face="Helvetica, Arial, sans-serif"><br>
</font><br>
Samuel Vogel wrote:
<blockquote cite="mid:48BBE74E.8030701@gmail.com" type="cite">Igor
Sysoev schrieb:
  <br>
  <blockquote type="cite">Try the following:
    <br>
    <br>
ššššššš location ~ /pma/.+\.php$ {
    <br>
ššššššššššššššš rewriteš ^/pma(/.+)$š $1š break;
    <br>
    <br>
ššššššššššššššš fastcgi_passšš 127.0.0.1:9001;
    <br>
ššššššš }
    <br>
  </blockquote>
Thanks, this works!
  <br>
Even thou it works now, maybe somebody with some spare time could
explain to me what this actually does.
  <br>
I couldn't explain it to myself just with looking at the docs!
  <br>
  <br>
Thanks,
  <br>
Samy
  <br>
  <br>
  <br>
</blockquote>
</body>
</html>