Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

[httpd 2.2.3][conf] regular expression problem in <LocateMatch>

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


thorsten.ottosen at dezide

Jan 16, 2007, 10:20 AM

Post #1 of 4 (963 views)
Permalink
[httpd 2.2.3][conf] regular expression problem in <LocateMatch>

Dear All,

I need <LocateMatch "<my expression here>" to match an url of the
following form:

/faq/index.php?faq_name=Staff&category=0

To do that I tried with the following expressions:

"/faq/.*faq_name.*"
"/faq/.*?faq_name.*"
"/faq/*faq_name*"

Non of them seem to work. And I've tried dozens of other little hacks.
Basically I need a non-greedy match of anything before a particular word.

What am I doing wrong? What's the best source for the allowed syntax in
httpd.conf?

Thanks in advance

Thorsten, Dezide


---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


steve.j.swift at gmail

Jan 16, 2007, 9:42 AM

Post #2 of 4 (904 views)
Permalink
Re: Re: [httpd 2.2.3][conf] regular expression problem in <LocateMatch> [In reply to]

You're trying to match a part of the URL that comes after the "?". That part
of the URL does not form part of the location, but is part of the parameters
passed to whatever handles the request.

On 16/01/07, Thorsten Ottosen <thorsten.ottosen[at]dezide.com> wrote:
>
> Thorsten Ottosen wrote:
> > Dear All,
> >
> > I need <LocateMatch "<my expression here>" to match an url of the
> > following form:
>
> That should be <LocationMatch> of course.
>
> -Thorsten
>
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>


--
Steve Swift
http://www.swiftys.org.uk


thorsten.ottosen at dezide

Jan 16, 2007, 10:20 AM

Post #3 of 4 (899 views)
Permalink
Re: [httpd 2.2.3][conf] regular expression problem in <LocateMatch> [In reply to]

Thorsten Ottosen wrote:
> Dear All,
>
> I need <LocateMatch "<my expression here>" to match an url of the
> following form:

That should be <LocationMatch> of course.

-Thorsten


---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


thorsten.ottosen at dezide

Jan 18, 2007, 2:20 PM

Post #4 of 4 (885 views)
Permalink
Re: [httpd 2.2.3][conf] regular expression problem in <LocateMatch> [In reply to]

Steve Swift wrote:
> You're trying to match a part of the URL that comes after the "?". That
> part of the URL does not form part of the location, but is part of the
> parameters passed to whatever handles the request.

Doh. Thanks for the explanation.

best regards

Thorsten


---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.