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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
"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 |