Error pages not working since on linux server

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Error pages not working since on linux server

Post 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

Post 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

Post 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

Post 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

Post by Vox Populi »

Dohhhh.... Thanks for catching that one Stoker. I missed it.

Error pages not working since on linux server

Post by martin123456 »

lmao me too lol its working now

Error pages not working since on linux server

Post 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