| View previous topic :: View next topic |
| Author |
Message |
jamessampford
Joined: 11 May 2005 Posts: 3
|
Posted: Wed 11 May '05 21:57 Post subject: customer error pages |
|
|
is it possible to create customised error pages - 401, 403, 404 etc etc?
if so how, and what files to add/edit?
great software @ the moment - working good over my home made intranet  |
|
| Back to top |
|
xing

Joined: 09 Jun 2004 Posts: 24
|
Posted: Wed 11 May '05 22:02 Post subject: |
|
|
You can edit the files in sambar/messages/
X |
|
| Back to top |
|
jamessampford
Joined: 11 May 2005 Posts: 3
|
Posted: Wed 11 May '05 22:05 Post subject: |
|
|
thanks xing  |
|
| Back to top |
|
jamessampford
Joined: 11 May 2005 Posts: 3
|
Posted: Wed 11 May '05 22:09 Post subject: |
|
|
is it possible to include php files within these files - if so how?
i know ina php script you use
include('file.php');
but i do not know about this system |
|
| Back to top |
|
Michael
Joined: 09 Aug 2005 Posts: 4
|
Posted: Tue 09 Aug '05 16:12 Post subject: |
|
|
Seems like an old topic, but in case anyone else can benefit from this...
I use virtual hosts, and the way I get different custom error messages for each virtual host is by using the Sambar scripting language. Each .stm file in the /messages directory has only one line:
| Code: | | <RCinclude /errors/404.php> |
Then I have a directory /errors/ within my virtual host document directories which houses my custom error messages. This works very nicely since the .stm file understands the relative URI and the PHP file also gets parsed correctly. |
|
| Back to top |
|
shaggy
Joined: 06 Jul 2006 Posts: 19
|
Posted: Tue 28 Nov '06 19:07 Post subject: |
|
|
Question about this should also be something of the like:
Some ppl maynot want this. In apache *sorry* in the footer of the error pages you see stuff DAV/2, mod_perl, ............ Now this Sambar is there a way to stuff of the like that is used in Sambar to show up on the bottom of the error pages? (ie: DAV/2, Perl, PHP, Python, .............) |
|
| Back to top |
|