You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Samuel Vogel <sa...@gmx.de> on 2007/07/30 23:11:31 UTC
[users@httpd] mod_rewrite in .htaccess but without allowing to set the ErrorDocument
Hey Apache Guys,
Is there any way that I can allow my users to use mod_rewrite without
allowing them to set their own ErrorDocument?
AllowOverride FileInfo is allows both of them. Can I somehow get a finer
grained control over this?
Can I disable setting ErrorDocument while allowing mod_rewrite?
Thanks,
Samy
---------------------------------------------------------------------
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
Re: [users@httpd] mod_rewrite in .htaccess but without allowing to set the ErrorDocument
Posted by Joshua Slive <jo...@slive.ca>.
On 7/30/07, Samuel Vogel <sa...@gmx.de> wrote:
> Well, we earn our money with the error pages.
> But we would still like to allow mod_rewrite. If somebody is clever
> enough to replicate the ErrorDocument directive with mod_rewrite it
> would be very complicated...
> So is there no way to "lock" the Error Pages, oder allow mod_rewrite
> without "AllowOverride FileInfo" ?
No, it would not be complicated to replicate ErrorDocument with
mod_rewrite. It is a simple variation on a standard mod_rewrite
recipe.
You may, however, be able to get the effect you're looking for by
putting the ErrorDocument in a <Location /> section as described here:
http://httpd.apache.org/docs/2.2/howto/htaccess.html#how
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
Re: [users@httpd] mod_rewrite in .htaccess but without allowing to
set the ErrorDocument
Posted by Samuel Vogel <sa...@gmx.de>.
Well, we earn our money with the error pages.
But we would still like to allow mod_rewrite. If somebody is clever
enough to replicate the ErrorDocument directive with mod_rewrite it
would be very complicated...
So is there no way to "lock" the Error Pages, oder allow mod_rewrite
without "AllowOverride FileInfo" ?
Joshua Slive schrieb:
> On 7/30/07, Samuel Vogel <sa...@gmx.de> wrote:
>
>> Hey Apache Guys,
>>
>> Is there any way that I can allow my users to use mod_rewrite without
>> allowing them to set their own ErrorDocument?
>> AllowOverride FileInfo is allows both of them. Can I somehow get a finer
>> grained control over this?
>> Can I disable setting ErrorDocument while allowing mod_rewrite?
>>
>
> I doubt it. But in any case, mod_rewrite gives way more power than
> ErrorDocument, so this doesn't seem like a sensible restriction. With
> the appropriate rewrites, you could replicate the exact effect of the
> ErrorDocument directive.
>
> 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
>
---------------------------------------------------------------------
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
Re: [users@httpd] mod_rewrite in .htaccess but without allowing to set the ErrorDocument
Posted by Joshua Slive <jo...@slive.ca>.
On 7/30/07, Samuel Vogel <sa...@gmx.de> wrote:
> Hey Apache Guys,
>
> Is there any way that I can allow my users to use mod_rewrite without
> allowing them to set their own ErrorDocument?
> AllowOverride FileInfo is allows both of them. Can I somehow get a finer
> grained control over this?
> Can I disable setting ErrorDocument while allowing mod_rewrite?
I doubt it. But in any case, mod_rewrite gives way more power than
ErrorDocument, so this doesn't seem like a sensible restriction. With
the appropriate rewrites, you could replicate the exact effect of the
ErrorDocument directive.
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