View previous topic :: View next topic |
Author |
Message |
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sat Apr 07, 2012 4:46 am Post subject: Error Pages |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Apr 07, 2012 5:14 am Post subject: |
|
|
What browser are you using? Internet Explorer has its own way of displaying its own custom error pages. |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sat Apr 07, 2012 5:21 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Apr 07, 2012 9:01 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sat Apr 07, 2012 9:08 pm Post subject: |
|
|
Error page compression is disabled (but compression for txt and css is enabled).
|
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Apr 08, 2012 1:09 am Post subject: |
|
|
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.
Last edited by TRUSTAbyss on Sun Apr 08, 2012 2:42 am; edited 2 times in total |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sun Apr 08, 2012 1:21 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Apr 08, 2012 1:23 am Post subject: |
|
|
I updated my last post at the last minute. I do apologize but I need more info on the first rewrite rule. |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sun Apr 08, 2012 1:41 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Apr 08, 2012 2:45 am Post subject: |
|
|
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? |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sun Apr 08, 2012 3:41 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Apr 08, 2012 7:27 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Sun Apr 08, 2012 7:33 pm Post subject: |
|
|
They all follow the same format with the redirect to (its a form defined with different numbers):
|
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Apr 09, 2012 2:52 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Mon Apr 09, 2012 3:31 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Apr 09, 2012 6:52 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
Toasty -
Joined: 21 Feb 2008 Posts: 298 Location: Chicago, IL
|
Posted: Wed Apr 11, 2012 2:47 am Post subject: |
|
|
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. _________________ Audit the secure configuration of your server headers! |
|
Back to top |
|
|
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Fri Apr 13, 2012 2:15 pm Post subject: |
|
|
Ah
I didnt realize that.
Thanks for the help anyways. |
|
Back to top |
|
|
|