WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

IBM HTTP SERVER MAINTENANCE PAGE

  • 1.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/12/12 03:43 PM
    I planned to put maintenance page in IBM http server, whenever the Appserver goes down the maintenance page should come up....

    I am able to configure everything properly but The Image in the maintenance.html is not getting displyed. I kept both the maintenance.html and Imagesin the below path

    /opt/HttpServer/htdocs/en_US/

    Could you please suggest me how to get the image in the maintenance page.. 


  • 2.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/12/12 05:19 PM
    Hi Siva,

      How are you referencing (URL) the image in the maintenance.html page?

      if both are in the http server and you a getting the html in theory you need to get the image too.

      Can you get the image directly?

      What do you see in the access.log? and in error.log?
     

    regards,


  • 3.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/13/12 07:06 AM
    Images and maintenance.html in the below path /033fs01/vendors/IBM/IHS61/HTTPServer/htdocs/en_US access.log shows "GET /htdocs/en_US/images/nissan_logo.jpg HTTP/1.1" 206 960 No uptade in error.log Thanks in advance


  • 4.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/13/12 09:59 AM
    Hi siva,
     
    206 Partial Content

    This message might occur if a client has a partial copy of content in its cache and requests and update of missing content. This message indicates that the partial request succeeded.



     Do you have a cache?

      look for 206 in this link:

      Caching Proxy directives
      pic.dhe.ibm.com/infocenter/wasinfo/v6r1/...


    regards,


  • 5.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/14/12 04:47 AM
    Hi Gabriel,

    I am not sure , where should I update the below string

    AcceptAnything on

    I tryied in httpd.conf, but it throwing the below error.

    Syntax error on line 865 of /033fs01/vendors/IBM/IHS61/HTTPServer/conf/httpd.conf:
    Invalid command 'AcceptAnything', perhaps mis-spelled or defined by a module not included in the server configuration

    Could you please suggest me where to configure the above string.

    Thanks


  • 6.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/14/12 06:30 AM
    Hi Siva,

      Take in mind that AcceptAnything directive is for Caching proxy Edge component, that is diferent from IHS.

      try the next one to see if the problem is with Requiest range the next lines in httpd.conf:

      RequestHeader unset Range
      RequestHeader unset Request-Range



    regards,


  • 7.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/14/12 01:35 PM
    siva,

    hw r u trying 2 configure in webserver using httpd.conf?
    can u throw some light on how have u configured.

    regards
    ashraf


  • 8.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/18/12 09:36 AM
    Hi Gabriel,

    I set the above 2 parameters in httpd.conf, Still Image is not getting displayed.

    Regards,
    Siva 


  • 9.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/18/12 09:42 AM
    Hi Ashraf,

    I have copied the Image folder and the maintenance.html in the below path.

    opt/vendors/IBMIHS/HTTPServer/htdocs/en_US/

    In the httpd.conf file reading the file as below. 

    LoadModule rewrite_module modules/mod_rewrite.so
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}/serverdown.txt -f
    RewriteRule ^(/myapp.*)$ /maintenance.html [PT]

    I am getting the maintenance page but the Image is not getting displayed.

    Regards,
    Siva 


  • 10.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/22/12 08:28 AM
    Siva,

    LoadModule rewrite_module modules/mod_rewrite.so
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}/serverdown.txt -f
    RewriteRule ^(/myapp.*)$ /maintenance.html [PT]


    I hope the maintenance.html file resides in the DocumentRoot. In that case, can you check the source of the maintenance.html file and check whether the images are available in the same path as mentioned in the source?

    Can you enable debug mode in conf file and check in the logs whether the request after rewriting is able to request for images which needs to be served.

    Regards
    Ashraf






  • 11.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/24/12 08:03 AM
    Hi Gabriel / Ashraf,

    Now it is working fine, Thanks for your support.

    The thing is we have to put the maintenence.html and the related images in the below path itself.

    /opt/vendors/IBM/HTTPServer/htdocs/en_US/

    The mistake I did , I have copied the images inside a folder (Images) and copied this images folder into the above path. So it did not work.

    Thanks once again


  • 12.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 08/27/12 10:44 AM
    Hi Siva,

      ¡¡¡¡Great Siva!!!!
     
      I have reviewing the thread and you says at the beginning:
     
        "I planned to put maintenance page in IBM http server, whenever the Appserver goes down the maintenance page should come up"

      Maybe there is a reason to use rewrite module but if you use the directive ErroDocument you can get the same:
     
      ErrorDocument 500 /outofservice.html
     
      I have the next http configuration:
     
        DocumentRoot "E:/WebSphere/HTTPServer/htdocs/en_US"
        At this level I have created a page outofservice.html
        E:/WebSphere/HTTPServer/htdocs/en_US
                                                                        /images
                                                                                    /outofservice.jpg
                                                                        outofservice.html
        in source of page:
        
         body  width="778" height="556" background="images/outofservice.jpg" resize="no" scroll="no"
        

      When I have the server started all works fine, when I stop the server or when the plugin is getting an Error 500 the outofservice.html is getting.
        
    regards,


  • 13.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 09/15/12 12:20 PM
    Hi All,

    I kept the maintenance page and images in root directory, now it is working as expected.

    Thanks for your support..
     


  • 14.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 04/08/13 04:21 PM
    Hi Siva/Gabriel,

      May I know how you guys manage to configure the proper error page ? I tried in our server with ErrorDocument and DocumentRoot, it does not work. I will have to also remove the application entry in the plugin file, then it works.

    Thanks
    neo 


  • 15.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 04/09/13 04:43 AM
    Hi Neo,

    I configured the maintenance page to come up , when the AppServer is down or if the plugin thows 500 error.

    I have kept the maintenance.html in the DocumentRoot folder and given the path details it ErrorDocument 500.

    DocumentRoot: "E:/WebSphere/HTTPServer/htdocs/en_US"
    ErrorDocument 500 /maintenance.html.

    Please let revert back if any more details required.....

    Thanks,
    Siva


  • 16.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 04/09/13 05:54 AM
    Hi Neo,

      You don't need to remove the application entry in the plugin.
     
      ErrorDocument 500 directive detects automatically response code 500 from AppServer and so the page specified.
     
      Siva's directives should work.

      Tell us if you need more support.
     
    Regards



  • 17.  IBM HTTP SERVER MAINTENANCE PAGE

    Posted 04/10/13 05:40 AM
    Hi Guys,

      Thanks for the support, I am still getting normal 500 error after setting the DocumentError and have my websphere application server stopped.

    DocumentRoot "/websphere/HTTPServer/htdocs"


    ErrorDocument 500 /500.html
    ErrorDocument 404 /404.html


     Both files 500.html and 404.html are in /websphere/HTTPServer/htdocs. Do we need any special configuration for "/websphere/HTTPServer/htdocs" in httpd.conf ?
     


    Internal Server Error


    The server encountered an internal error or misconfiguration and was unable to complete your request.


    Please contact the server administrator, webmaster@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.


    More information about this error may be available in the server error log.


    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.