Web Hosting Talk







View Full Version : How do you do custom 404 pages on Cobalt OS 6.0?


Aushosts
11-23-2002, 01:18 AM
Hey Everyone,
I am doin a web development project for a client and there site is on a Cobalt OS 6.0. I want to use custom 404 pages...

Now the site comes up with:
The server encountered an internal error or misconfiguration and was unable to complete your request.

When I use this as the .htaccess file:

ErrorDocument 404 /404.php

I want the client to have custom 404 file. Can anyone lend me hand, advice or guidence it would be great...

Brenden

EDIT: Fixed subject line

CmptrWz
11-23-2002, 01:22 AM
You need to add the right command to the AllowOverride line. I forget which one it is, but you can check at apache.org

Just search for errordocument and it should tell you what is needed.

Aushosts
11-23-2002, 01:29 AM
Not sure if the system admins will do this for me... Do you know how to turn .htaccess files on?

Thanks
Brenden

CmptrWz
11-23-2002, 01:31 AM
AllowOverride IS the control for .htaccess files. That statement allows or rejects given commands in the .htaccess files. It has to be edited to do what you want.

Aushosts
11-23-2002, 01:32 AM
Ok thanks for that, i understand now.

Thanks again,
Brenden

nozol
11-30-2002, 10:33 AM
To allow .htaccess to work for a specific web sites, just do the following

login using ssh and su root
pico /etc/httpd/conf/access.conf

Add the following lines at the end of the file

<Directory /home/sites/siteNUMBER>
AllowOverride All
Options All
</Directory>


where siteNUMBER is the directory of the site you want.

then restart apache

/etc/rc.d/init.d/httpd restart

Aushosts
11-30-2002, 10:49 PM
They are ignoring my emails :mad: I am going to call them monday this way might be easier for them to do.
Thanks again everyone.