<location>

This is a discussion on <location> within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Is there a way for <location> to catch by default? Like, say I have specific rules for ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-06-2005
Hale
 
Posts: n/a
Default <location>

Hi,

Is there a way for <location> to catch by default? Like, say I have
specific rules for index.htm, page,htm, etc. For anything else, can I get
<location> to default? Is there a better way to do this?

I've tried <location ~ "^/*"> and I get an internal server error and my
error logs report the following:

[Wed Aug 3 11:43:38 2005] [error] [client 130.94.123.98] Request exceeded
the limit of 20 internal redirects due to probable configuration error. Use
'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel
debug' to get a backtrace



I'm using apache 1.33

Example:

<location /index.html>
### do something
</location>

<location /page.html>
### do something
</location>

<location (catch the rest)>
### do default
</location>


All suggestions are very appreciated.

Thanks,

Paul


  #2 (permalink)  
Old 08-06-2005
HansH
 
Posts: n/a
Default Re: <location>

"Hale" <paulj1999@yahoo.com> schreef in bericht
news:%P8Je.7600$vf.645@tornado.socal.rr.com...
> Is there a way for <location> to catch by default? Like, say I have
> specific rules for index.htm, page,htm, etc. For anything else, can I get
> <location> to default? Is there a better way to do this?
>
> I've tried <location ~ "^/*"> and I get an internal server error and

my
> error logs report the following:
>
> [Wed Aug 3 11:43:38 2005] [error] [client 130.94.123.98] Request exceeded
> the limit of 20 internal redirects due to probable configuration error.

Use
> 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel
> debug' to get a backtrace
>
> I'm using apache 1.33
>
> Example:
>
> <location /index.html>
> ### do something
> </location>
>
> <location /page.html>
> ### do something
> </location>
>
> <location (catch the rest)>
> ### do default
> </location>
>

<location ~ "^/*"> may, depending on what's in 'do something', catch 'all',
then 'do default' is applied to index.html and page.html too.

AFAIK the directives above cannot cause the 'Request exceeded the limit of
internal redirects' error. To further address your issue I like to know
what's in 'do something' and 'do default' and a sample URL causing the
error.

HansH




  #3 (permalink)  
Old 08-07-2005
Hale
 
Posts: n/a
Default Re: <location>

"HansH" <hans@niet.op.het.net> wrote in message
news:42f52ca1$0$11080$e4fe514c@news.xs4all.nl...
> "Hale" <paulj1999@yahoo.com> schreef in bericht
> news:%P8Je.7600$vf.645@tornado.socal.rr.com...
>> Is there a way for <location> to catch by default? Like, say I have
>> specific rules for index.htm, page,htm, etc. For anything else, can I
>> get
>> <location> to default? Is there a better way to do this?
>>
>> I've tried <location ~ "^/*"> and I get an internal server error and

> my
>> error logs report the following:
>>
>> [Wed Aug 3 11:43:38 2005] [error] [client 130.94.123.98] Request
>> exceeded
>> the limit of 20 internal redirects due to probable configuration error.

> Use
>> 'LimitInternalRecursion' to increase the limit if necessary. Use
>> 'LogLevel
>> debug' to get a backtrace
>>
>> I'm using apache 1.33
>>
>> Example:
>>
>> <location /index.html>
>> ### do something
>> </location>
>>
>> <location /page.html>
>> ### do something
>> </location>
>>
>> <location (catch the rest)>
>> ### do default
>> </location>
>>

> <location ~ "^/*"> may, depending on what's in 'do something', catch
> 'all',
> then 'do default' is applied to index.html and page.html too.
>
> AFAIK the directives above cannot cause the 'Request exceeded the limit of
> internal redirects' error. To further address your issue I like to know
> what's in 'do something' and 'do default' and a sample URL causing the
> error.



Basically, what I want to do is this:
<Location ~ "/index.html">
Action php-script /lib/Apache/Default.php
SetHandler php-script
</Location>

<Location ~ "^/*">
Action php-script /lib/Apache/Runner.php
SetHandler php-script
</Location>


Thanks for your time


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0