virtualhost - Apache Error Document is not working -
virtualhost - Apache Error Document is not working -
i running apache2 webserver in linux environment.i want redirect users customized error pages.so have created error pages & created symbolic link in htdocs this. static-files -> /app/static-files. , in httpd.conf file have created virtual host definition , included error pages below:
namevirtualhost m.mydomain.com:80 <virtualhost m.mydomain.com:80> documentroot "/app/httpd-2.2.15/htdocs" servername m.mydomain.com:80 <directory "/static-files/html/error_pages"> options followsymlinks order allow,deny allow </directory> errorlog /app/httpd-2.2.15/logs/error_my_log errordocument 400 /static-files/html/error_pages/error_400.html errordocument 401 /static-files/html/error_pages/error_401.html errordocument 403 /static-files/html/error_pages/error_403.html errordocument 404 /static-files/html/error_pages/error_404.html errordocument 408 /static-files/html/error_pages/error_408.html errordocument 500 /static-files/html/error_pages/error_500.html errordocument 501 /static-files/html/error_pages/error_501.html errordocument 502 /static-files/html/error_pages/error_502.html errordocument 503 /static-files/html/error_pages/error_503.html errordocument 504 /static-files/html/error_pages/error_504.html </virtualhost>
when app server down,its not redirecting me 503 customized error page.i getting server specific error page only.but if set errordocument out of virtual host definition redirecting me customized error page. striking head 3 days.but not able find reason.i tried in browsers.anybody can help me ?
i'm not 100% sure when have app server running behind apache , when downwards have 404 not found. it's not 503 answer. 503 occurs when there fault on server (either apache of app server) such load or happen next miss configuration.
virtualhost apache2.2 errordocument
Comments
Post a Comment