httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] <Location> and partially non-existing directory?
Date Mon, 20 Mar 2017 16:38:53 GMT
On Mon, Mar 20, 2017 at 12:38 PM, Eric Covener <covener@gmail.com> wrote:
> On Mon, Mar 20, 2017 at 12:30 PM, DUVERGIER Claude
> <httpd.ml@claude.duvergier.fr> wrote:
>>         <Location "/foo">
>>
>>             Header set X-Foo "true"
>>
>>         </Location>
>
>
> Are you getting mixed up by looking at the headers for unsuccessful
> requests but not telling mod_headers to 'always' set the header?
>
> The optional condition argument determines which internal table of
> responses headers this directive will operate against. Despite the
> name, the default value of onsuccess does not limit an action to
> responses with a 2xx status code. Headers set under this condition are
> still used when, for example, a request is successfully proxied or
> generated by CGI, even when they have generated a failing status code.
>

http://httpd.apache.org/docs/2.4/mod/mod_headers.html#header

(submitted too early)

Location /foo should behave how you expect


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message