Koozali.org: home of the SME Server

Not having a good time...

stormdragon

Not having a good time...
« on: January 09, 2005, 05:11:13 PM »
I read how to setup custom ErrorMessages with the e-smith-htaccess contrib, so I downloaded and installed (what exactly does this do?), then created a .htaccess file under ibays/Primary/html with the following content:

ErrorDocument 500 /404.html
ErrorDocument 404 /404.html
ErrorDocument 401 /404.html
ErrorDocument 403 /404.html
ErrorDocument 402 /404.html
AddType application/x-httpd-php .php .php3 .phtml .html

I chmodded to 644, the restarted Apache.
Now whenever I try to connect to *anything* via the web, whether my Primary or any other iBay, I get "Connection refused".

Any suggestions?
Thanks in advance!

stormdragon

Not having a good time...
« Reply #1 on: January 09, 2005, 05:20:57 PM »
I should've known...
2 reboots later, and I have access again.

However, the ErrorDocuments still aren't working.

Help?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Not having a good time...
« Reply #2 on: January 10, 2005, 05:14:43 AM »
I couldn't get that to work as well, but here is how I got it to work.  Put your errordocument statements into the httpd.conf file.  Then do a service httpd restart.  With your example, your custom html files will need to be in the primary document root.  Once you have tested that they are working, then create a templates-custom template and put your statements there.  Then expand the httpd.conf templates restart httpd and you should be ready to roll.

It doesn't look like it matters where these statements are placed in the httpd.conf file.  I tried various places and it always worked for me.

GL,

JB
......

stormdragon

I got sleepy
« Reply #3 on: January 10, 2005, 05:42:35 AM »
I fought with the ErrorDocs for a few more tries, then I got Sleepy:
http://vanhees.homeip.net/modules.php?op=modload&name=News&file=article&mode=thread&order=0&thold=0

The site's in French, mais ce n'est pas un probleme :)

The install is in English. Adds a panel to /server-manager. Works like a charm!