httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] 503 response with mod_rewrite?
Date Fri, 25 Aug 2006 18:17:23 GMT
On 8/25/06, Evaldas Imbrasas <evaldas@imbrasas.com> wrote:
> On 8/25/06, Joshua Slive <joshua@slive.ca> wrote:
> > On 8/25/06, Evaldas Imbrasas <evaldas@imbrasas.com> wrote:
> > > Is there a way to do this redirect on a conditional as a rewrite rule
> > > allows, though? I.e., return a 503 if a certain file exists?
> >
> > Sure, just make "a certain file" an .htaccess file in the DocumentRoot
> > containing that directive.  Otherwise, if Andre is right, you can use
> > all the tricks of mod_rewrite directly.
>
> Unfortunatelly, that is not an option, as my site is optimized for
> speed and therefore is not using .htaccess files. Upgrading to 2.2 is
> not possible in short-term either.

It would be no more performance-draining to check for an .htaccess
file than it would be to check for any other file as a condition for
issuing a 503.

Joshua.

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


Mime
View raw message