Error Pages

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sat Apr 07, 2012 4:46 am    Post subject: Error Pages Reply with quote

I noticed something odd happening with my website. Custom error pages worked several months ago but now they suddenly don't. Any idea what's happening?

The page i have errors point does indeed exist and other sites that have the exact same errors work fine. But on my main site they don't work at all.

Any idea why this is occurring? Could a rewrite rule be interfering?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sat Apr 07, 2012 5:14 am    Post subject: Reply with quote

What browser are you using? Internet Explorer has its own way of displaying its own custom error pages.
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sat Apr 07, 2012 5:21 am    Post subject: Reply with quote

Firefox. Custom error pages on this particular virtual host dont display properly anymore. But the same custom error pages on other virtual hosts display fine.

Here's my settings:

Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sat Apr 07, 2012 9:01 pm    Post subject: Reply with quote

Do you have compression enabled for that particular Virtual Host? Firefox has a bug that affects the compression of web pages that is fixed in newer versions. Rewrite rules could affect the error pages from displaying because of the rewritten URIs. Could you post a pic of the URL Rewriting rules? It would help narrow down the problem.
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sat Apr 07, 2012 9:08 pm    Post subject: Reply with quote

Error page compression is disabled (but compression for txt and css is enabled).

Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sun Apr 08, 2012 1:09 am    Post subject: Reply with quote

Could you post a pic of the settings for the first rewrite rule? I'm not sure if you're trying to redirect users from yoursite.com/path to www.yoursite.com/path.
_________________
Computer Programmer & Networking Specialist



Last edited by TRUSTAbyss on Sun Apr 08, 2012 2:42 am; edited 2 times in total
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sun Apr 08, 2012 1:21 am    Post subject: Reply with quote

Yes all my sites are on AWS. Each subdomain has its own virtual host. The error pages on the subdomains work fine, but this host for some odd reason stopped displaying them.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sun Apr 08, 2012 1:23 am    Post subject: Reply with quote

I updated my last post at the last minute. I do apologize but I need more info on the first rewrite rule.
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sun Apr 08, 2012 1:41 am    Post subject: Reply with quote

The rule redirects users who to go http://... to http://www...



P.S. Can you remove mention of my domain, id rather not anyone know i use AWS as it just makes it easier for malicious users to exploit things.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sun Apr 08, 2012 2:45 am    Post subject: Reply with quote

I changed it to yoursite.com and www.yoursite.com so bots can't look it up. I'm not really sure what is causing this. Have you tried disabling the rewrite rule to see if that fixed it?
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sun Apr 08, 2012 3:41 am    Post subject: Reply with quote

Yeah it was all the /misc.php?do=form&fid= rules that are causing the problem. I need them defined though. Any idea how to get the rewrite rules and custom errors pages to play nice with each other?

Can i define error pages with AWS rewrite rules?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Sun Apr 08, 2012 7:27 pm    Post subject: Reply with quote

You could use URL Rewrites to create error pages if that would help. Could you post the settings of the rewrite rules that are causing the issue? Thanks.
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Sun Apr 08, 2012 7:33 pm    Post subject: Reply with quote

They all follow the same format with the redirect to (its a form defined with different numbers):

Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Mon Apr 09, 2012 2:52 am    Post subject: Reply with quote

How are you triggering the error pages? Does it have to do with requests to the actual PHP script? If so, that is the problem. PHP scripts are not affected by Abyss's custom HTTP Error Pages. You would have to make your own.
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Mon Apr 09, 2012 3:31 am    Post subject: Reply with quote

Right now im using AWS's error page system to set the error pages. But the rewrite rules i need defined are messing up custom error pages. Is there any way to remove the powered by abyss web server X2 at the bottom of the default error page?
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Mon Apr 09, 2012 6:52 pm    Post subject: Reply with quote

No, you would need to define your own custom error pages. If you're wanting to generate a custom error page defined within Abyss to activate when a PHP script needs to trigger it, that will not work. Abyss's custom error pages works with non-script related errors, such as 404 Not Found and 401 Unauthorized. You could set an error code status via the header() PHP function and use includes to show a custom error page when PHP needs to display one.
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Toasty
-


Joined: 21 Feb 2008
Posts: 296
Location: Chicago, IL

PostPosted: Wed Apr 11, 2012 2:47 am    Post subject: Reply with quote

Turtles wrote:
The rule redirects users who to go http://... to http://www...



P.S. Can you remove mention of my domain, id rather not anyone know i use AWS as it just makes it easier for malicious users to exploit things.


Security by obscurity is a terrible policy, especially when your server emits headers like this:

Quote:
Code:

Last-Modified: Sat, 01 Oct 2011 22:10:46 -0500
Content-Type: text/html
Vary: Accept-Encoding, User-Agent
Content-Encoding: gzip
Date: Wed, 11 Apr 2012 01:31:14 GMT
Server: Abyss/2.7.0.0-X2-Win32 AbyssLib/2.7.0.0

200 OK


Those are the headers from the site in my signature. These headers are what crackers use, not what they find in a forum somewhere.
_________________
Security Blog
Back to top View user's profile Send private message Visit poster's website
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Fri Apr 13, 2012 2:15 pm    Post subject: Reply with quote

Ah

I didnt realize that.

Thanks for the help anyways.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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