Koozali.org: home of the SME Server

How to set custom http error page on SME 6? (eg: 404.html)

Eugen Mihailescu

How to set custom http error page on SME 6? (eg: 404.html)
« on: March 29, 2004, 04:25:39 PM »
Hi everybody,

2 wk ago I've just moved from the Win2K server to SME6, which makes a very good impression to me so far;

on issue I am not able to solve it and you might help me:
- i want to have on my web a custom http error page for code 404, ie. when a user request an invalid page on my web, the web server automatically returns that 404.html page instead on default browser message
in IIS i can do that and i wonder if with SME is also possible to do it in this way
thx,
Eugen

Offline byte

  • *
  • 2,183
  • +2/-0
How to set custom http error page on SME 6? (eg: 404.html)
« Reply #1 on: March 29, 2004, 04:56:58 PM »
Hi,

Yes you can do this if you goto the directory called "/etc/squid/errors" in that directory you will see alot of files for instance "ERR_ACCESS_DENIED" this is a html format so just edit how you see fit press F4 in midnite commander (mc at command line) and edit from there if you know html  :-D

HTH
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Eugen Mihailescu

How to set custom http error page on SME 6? (eg: 404.html)
« Reply #2 on: March 30, 2004, 01:04:13 PM »
Excelent; thx for your time and help
;o)
Eugen

Quote from: "byte"
Hi,

Yes you can do this if you goto the directory called "/etc/squid/errors" in that directory you will see alot of files for instance "ERR_ACCESS_DENIED" this is a html format so just edit how you see fit press F4 in midnite commander (mc at command line) and edit from there if you know html  :-D

HTH

Eugen Mihailescu

How to set custom http error page on SME 6? (eg: 404.html)
« Reply #3 on: March 30, 2004, 01:20:01 PM »
I've tested what you've suggested me, but it seems that has no effect;
more than that, I've found threads on the web that said that this custom changes are done on my proxy server rather than web server;
maybe you got me wrong so I will try reformulate the initial quote:
how can I have my custom error files on the web in order to provide the web visitor with my custom message rather than IE error message; so I'm talking about webvisitors and not about internal users which connect our web server (site) via proxy
Thx again,
Eugen

Quote from: "byte"
Hi,

Yes you can do this if you goto the directory called "/etc/squid/errors" in that directory you will see alot of files for instance "ERR_ACCESS_DENIED" this is a html format so just edit how you see fit press F4 in midnite commander (mc at command line) and edit from there if you know html  :-D

HTH

Offline byte

  • *
  • 2,183
  • +2/-0
How to set custom http error page on SME 6? (eg: 404.html)
« Reply #4 on: March 30, 2004, 03:28:49 PM »
Hmm, you didnt say you meant external web vists  :hammer: but anyway it can be done you will need to view http://www.htmlcenter.com/tutorials/tutorials.cfm/150/General/

Try on a test box see how you go  :-)

HTH
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!