[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Custome Errors...
- Subject: Re: [cobalt-users] Custome Errors...
- From: "David Collin" <david@xxxxxxxxxxxx>
- Date: Sun Nov 26 16:22:29 2000
- Organization: HappyClic
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
If you are not aware on where to do that, telnet to your machine, su to root
(su root and give the 'admin' password), go to /etc/httpd/conf and open
httpd.conf (i suggest you read some docs on 'VIM' before, using the command
'man vim' NOT AS ROOT!), and go to the end of the file... find your site, it
should look like this:
<VirtualHost 123.45.67.89>
ServerName www.foo.com
ServerAdmin admin
DocumentRoot /home/sites/site28/web
ServerAlias pointcarre.be
RewriteEngine on
RewriteCond %{HTTP_HOST} !^123.45.67.89(:80)?$
RewriteCond %{HTTP_HOST} !^www.foo.com(:80)?$
RewriteRule ^/(.*) http://www.foo.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site28/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site28/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
#THIS IS WHERE YOU ADD IT:
ErrorDocument 401 /home/sites/site28/web/errors/401.html
ErrorDocument 403 /home/sites/site28/web/errors/403.html
ErrorDocument 404 /home/sites/site28/web/errors/404.html
ErrorDocument 500 /home/sites/site28/web/errors/500.html
</VirtualHost>
> ErrorDocument 404
> /home/sites/www.customersite.com/errors/error_filenotfound.html
>
> directive.