Gossamer Forum
Home : General : Internet Technologies :

Custom Error pages on a Cobalt 4 server?

Quote Reply
Custom Error pages on a Cobalt 4 server?
Has anyone had any experience with this? I've been playing around with one....mainly editing srm.conf .... but for some reason, I can't work out how to setup custom error pages for each account. i.e if someone uploads a file called 404.html, it shows that, instead of the crappy Cobalt error pages.

BTW: When editing srm.conf, I did try rebooting.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Custom Error pages on a Cobalt 4 server? In reply to
Why don't you use .htaccess like normal?
Quote Reply
Re: [Paul] Custom Error pages on a Cobalt 4 server? In reply to
Because I need custom 404 errors for every site on the server....and I really don't wanna have to upload .htaccess files to every one of those 100 odd sites Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Custom Error pages on a Cobalt 4 server? In reply to
Well how else are you planning on doing it?

You are either gonna have to use 100 .htaccess files or 100 entries in httpd.conf

Last edited by:

Paul: Mar 26, 2003, 1:23 AM
Quote Reply
Re: [Paul] Custom Error pages on a Cobalt 4 server? In reply to
Ok..I'm trying another approach to this now. I have a script, which goes through the /home/sites/ directory.....and looks for folders that have sites in. Once it gets there, it places a .htaccess file in the /home/sites/site5/ folder. The problem is, the .htaccess then causes the whole site to produce 500 IS errors everywhere. The .htaccess code is only the following;

ErrorDocument 404 http://www.traffic-net.net/404.html
ErrorDocument 401 http://www.traffic-net.net/401.html
ErrorDocument 500 http://www.traffic-net.net/500.html

Can anyone see anything wrong with the format of this? Both me and my mate have had a look at it, and it all seems in perfect order. However, as soon as you uncomment those lines, the whole site produces a 500 Error Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Custom Error pages on a Cobalt 4 server? In reply to
Why not do the sensible thing and check your error log =)
Quote Reply
Re: [Paul] Custom Error pages on a Cobalt 4 server? In reply to
Mmm...interesting.

[Wed Mar 26 05:06:43 2003] [alert] [client 62.64.227.65] /home/sites/site8/.htaccess: ErrorDocument not allowed here

I've never seen that error before. I was led to believe that you could use ErrorDocument in a .htaccess anywhere in a sites directory structure Frown

Think I better have a look on google, to see what that error is all about, and how to fix it.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Custom Error pages on a Cobalt 4 server? In reply to
Ok...so now it seens that the problem is to do with AllowOverride (http://httpd.apache.org/...e.html#allowoverride). I'm trying to find some references as to where I can place this code, and with whatever to surround it. I tried just putting;

AllowOverride FileInfo

near the top of httpd.conf, but then when I restarted apache, I got an error saying it couldn't be run from there (so I removed it again).

Does anyone have any example code, of what it should look like in httpd.conf for the AllowOverride option?

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!