Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th July 2012, 11:59
Olgierd Olgierd is offline
Member
 
Join Date: Aug 2009
Posts: 39
Thanks: 5
Thanked 7 Times in 2 Posts
Angry error pages - APACHE

Hi!

I created my on error pages and when I try to connect on no real pages
I receive log like this:

[Wed Jul 04 11:49:23 2012] [error] [client ] File does not exist: /var/www/some domain.com.pl/web/jhdfkg, referer: http://www.somedomain.com.pl/jhdfkg
[Wed Jul 04 11:49:23 2012] [error] [client ] File does not exist: /usr/share/apache2/error/404.html, referer: http://www.somedomain.com.pl/jhdfkg

it looks that apache try find error pages in wrong folder

virtulahost has confguration like:

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html

may be somebody know why is it happend?
Reply With Quote
Sponsored Links
  #2  
Old 4th July 2012, 14:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
Default

Check your apache config files, it seems as there is a alias for /error somewhere in your setup which redirects all requests to the global apache error directory.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 4th July 2012, 15:58
Olgierd Olgierd is offline
Member
 
Join Date: Aug 2009
Posts: 39
Thanks: 5
Thanked 7 Times in 2 Posts
Default

when virtulahost has confguration like this with full path

ErrorDocument 400 /var/www/clients/client333/web444/error/400.html

it works

I can not find any alias
Reply With Quote
  #4  
Old 4th July 2012, 17:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
 
Default

There must be a alias defined in one of the apache config files of the linux distribution, you can find it e.g. with the grep command.
Changing the path to the full path is not required when you remove the alias.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
error pages

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sessions not being saved gavimobile General 6 15th January 2012 15:05
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 20:13
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 16:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.