Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5903

401 Status code for .magnolia makes usage of custom errordocuments in Apache impossible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 5.2.4
    • admininterface
    • None
    • Ubuntu 14.04 with Apache 2.4.7

    Description

      Usage of Apache as proxy server with the follwoing configuration:

      Alias                   /404    /var/www/404
      ErrorDocument           404     /404/server-error.html
      
      ProxyErrorOverride      on
      ProxyRequests           off
      ProxyPass               /404            !
      ProxyPass               /       ajp://localhost:8009/   max=200 retry=7
      

      makes it impossible to access the admin interface for login due to the send 401 status code. As the ProxyErrorOverride applies to all error pages (400-500) and uses the standard Apache ErrorDocument for the given 401.

      As far as I understand the RFC2616 the 401 code should only be used for basic authorization or digests. For a normal web page login a 200 OK would be more suitable and makes it possible to use Magnolia inside Apache Tomcat to be proxied over AJP.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              martin.moerner Martin Mörner
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD