Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2105

Add support for RequestHeader in vhosts Proxy declaration

    XMLWordPrintable

    Details

    • Template:
    • Epic Link:
    • Team:
      Modules
    • CS Priority:
      Reviewed

      Description

      We were used to set/override http request headers on apache reverse proxy setup

      This relies on mod_headers to set RequestHeader inside proxy declaration bloc. For instance we found something like this in current setup
      <Proxy http://our.internal.url/api>
      Order allow,deny
      Allow from all
      RequestHeader set Authorization "Basic xxxxxxxxxxxxxxxxxxxxx"
      </Proxy>

      But is also works fine with the syntax generated by puppet module
      <Location /api>
      ProxyPassReverse http://our.internal.url/api
      RequestHeader set Authorization "Basic xxxxxxxxxxxxxxxxxxxxxxxxxx"
      </Location>

      We would like to add such configuration with puppet's apache module
      (taken from module tests file)

      1. vhost with proxy_pass, request_headers
        apache::vhost { 'fourth.example.com':
        port => 80,
        docroot => '/var/www/fourth',
        proxy_pass => [
        Unknown macro: { 'path' => '/fourth', 'url' => 'http}

        ,
        ],
        }

      Do you think you can add something like this ? Or a more generic variant allowing to pass custom directives inside <Location> bloc

      Best regards,

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              bmontuelle Benoit Montuelle
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 1 day
                    1d
                    Logged:
                    Time Spent - Not Specified
                    Not Specified