Url Rewrite not using custom errors

 
Post new topic   Reply to topic    Aprelium Forum Index -> 2.14 Beta
View previous topic :: View next topic  
Author Message
Daevon
-


Joined: 04 Jul 2009
Posts: 19

PostPosted: Thu May 21, 2020 7:32 pm    Post subject: Url Rewrite not using custom errors Reply with quote

While not strictly correlated to 2.14, I've found that if I configure an URL rewrite rule to "if this rule matches -> 404", the standard error pages are used instead of the custom ones.
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1125

PostPosted: Fri May 22, 2020 5:23 pm    Post subject: Re: Url Rewrite not using custom errors Reply with quote

Daevon wrote:
While not strictly correlated to 2.14, I've found that if I configure an URL rewrite rule to "if this rule matches -> 404", the standard error pages are used instead of the custom ones.


As far as we know, if displaying a custom error page can result in circular references with URL rewriting, the standard error page is displayed.

In other words, if the custom error page path can itself be subject to URL rewriting rules, the server cannot recurse inside the rules without a limit. In such a case, it breaks the resolution of URL rewriting rules and displays the stock 404 page.

So we must review your abyss.conf file for a better diagnosis of the situation.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Daevon
-


Joined: 04 Jul 2009
Posts: 19

PostPosted: Tue May 26, 2020 8:20 pm    Post subject: follow-up Reply with quote

I discovered that even trying to access Abyss console:
http://192.168.0.101:10000/certificates/acme/edit
and cancelling the prompt for credentials
gives me a 'standard' 401 error, ie:
Code:

Error 401
Unauthorized

Powered by Abyss Web Server X1
Copyright © Aprelium - 2001-2020

instead of the custom 401.txt i defined (a simple txt file containing just:
Code:
401

)[/code]
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1125

PostPosted: Tue May 26, 2020 9:45 pm    Post subject: Re: follow-up Reply with quote

Daevon,

Custom error pages are specific to the host they are defined for. The console is a special host and it shares nothing with other hosts. So your custom error pages won't show for the console.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Daevon
-


Joined: 04 Jul 2009
Posts: 19

PostPosted: Wed May 27, 2020 10:50 am    Post subject: thanks Reply with quote

Thanks for the clarification!
One last thing: even tho my forum user is very old, I still get the notice that every post needs approval by a moderator. Can this be fixed please?
Thanks!
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1125

PostPosted: Wed May 27, 2020 8:08 pm    Post subject: Re: thanks Reply with quote

Daevon wrote:

One last thing: even tho my forum user is very old, I still get the notice that every post needs approval by a moderator. Can this be fixed please?
Thanks!


We have noticed that behavior and we cannot understand what is going on with your user account on the forum. We will get back to you as soon as this will be fixed.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> 2.14 Beta All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group