Page 1 of 1

Error pages not working since on linux server

Posted: 25 Oct 2011, 23:43
by martin123456
Error pages not working since on linux server also i only have the 1 .htaccess file in root

here is the .htaccess can you see why ?

Code: Select all

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
ErrorDocument 400 /forum/error.php?mode=400
ErrorDocument 401 /forum/error.php?mode=401
ErrorDocument 403 /forum/error.php?mode=403
ErrorDocument 404 /forum/error.php?mode=404
ErrorDocument 500 /forum/error.php?mode=500

Error pages not working since on linux server

Posted: 26 Oct 2011, 00:37
by Vox Populi
No can see. Odd though. I'm hosted on Linux server (the only way to go IMHO)...
How long have you been on this server? Some time it takes hours for .htaccess to come into affect but it's rare. I've had 5-10 minute delays max.

I disabled some of my items..eg;
<code>#Disable Directory Browsing
Options -Indexes
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule></code>

Error pages not working since on linux server

Posted: 26 Oct 2011, 00:50
by martin123456
Server uptime: 0 days, 4 hours, 31 minutes and 49 seconds

i'l wait till the morning and if its still the same then i'l comment out some bits

Error pages not working since on linux server

Posted: 26 Oct 2011, 07:15
by Stoker
ErrorDocument 400 /forum/error.php?mode=400
Are you sure this is correct?
It will only work if the path to your forum is: www.domain.com/forum/

Error pages not working since on linux server

Posted: 26 Oct 2011, 15:57
by Vox Populi
Dohhhh.... Thanks for catching that one Stoker. I missed it.

Error pages not working since on linux server

Posted: 26 Oct 2011, 16:02
by martin123456
lmao me too lol its working now

Error pages not working since on linux server

Posted: 28 Oct 2011, 21:44
by martin123456
And Vox Populi ty for this part ;) you saved me a few hours of studying file permissions within linux.


The below code locks all directory's up nice

Code: Select all

#Disable Directory Browsing
Options -Indexes