[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Custom 404 error page



Hi,

Here is the access.conf file (parts of it) we use to generate custom error
pages and turn off directory listings.

access.conf is in /etc/httpd/conf

<Directory /home/sites/>

# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".

# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.

#Options Indexes FollowSymLinks Includes MultiViews
Options FollowSymLinks Includes MultiViews

# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"

AllowOverride All

# ignore .ht*
<Files ".ht*">
deny from all
</Files>

# Controls who can get stuff from this server.

order allow,deny
allow from all

AuthFailDelay 2000000

# Frontpage subwebs use a nice mix of pam and Basic authentication
AuthPAM_FallThrough on

</Directory>

# be more restrictive within a site
<Directory /home/sites/*/>
Options -FollowSymLinks +SymLinksIfOwnerMatch -Indexes
</Directory>

=====================

Below are the settings for all virtual sites, they are listed at the bottom
of the access.conf file

<Directory /home/sites/home>
AllowOverride All
Options FollowSymLinks Includes MultiViews -Indexes
RedirectMatch (.*)\cmd.exe$ http://127.0.0.1
RedirectMatch (.*)\default.ida$ http://127.0.0.1
RedirectMatch (.*)\root.exe$ http://127.0.0.1
</Directory>
<Directory /home/sites/site1>
AllowOverride All
Options FollowSymLinks Includes MultiViews -Indexes
RedirectMatch (.*)\cmd.exe$ http://127.0.0.1
RedirectMatch (.*)\default.ida$ http://127.0.0.1
RedirectMatch (.*)\root.exe$ http://127.0.0.1
</Directory>

=========================


regards

Erik Venema
DutchNet
_____________________________________________________________________
Postbus 3                     Verkoop/billing:    sales@xxxxxxxxxxxxx
3734 ZG  Den Dolder         Storingsmeldingen:  support@xxxxxxxxxxxxx
tel.: 030-2292693           Technische vragen: helpdesk@xxxxxxxxxxxxx
fax.: 030-2292694            DutchNet website:      www.dutch-net.com
_____________________________________________________________________

Kijk op onze on-line shop www.dutch-net.com/shop voor al uw
computer-benodigdheden en actuele aanbiedingen.

-----------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Edward Bishop
Sent: dinsdag 23 oktober 2001 21:30
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Custom 404 error page


> >>  > I still can't get a custom 404 error page to work on my RaQ4
> >>  > Either I'm doing something stupid, or there's something else we
> >>  > don't know yet.
> >>  >
> >>  > Any further ideas will be gratefully and hungrily latched upon and
tried.

> Windoze sets IE with a default error page that will just
> show it's own error page instead of the real one...you can turn this
> off if you want
>
>     James Dean Young

No, it's not that; other people's custom pages work on my browser.

>     If you have <virtualhost x> you can put custom ErrorDocument 404
>     specifications in there too. Just make sure the file spec you use is
>     accessible to that virtual host.
>
>     If ErrorDocument is working but you don't have access to the file you
will
>     get a slightly different 404 error message (in the browser) stating
>     something like ...in addition an error occurred trying to access the
error
>     document.
>
>     John Foster

I've never had that, just the plain IE error page. Could you please enlarge
on the <virtualhost x> thing?

Eddie Bishop


> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users