Re: [users@httpd] ErrorDocument and Header always set ... env=

2025-01-08 Thread Rainer Canavan
On Wed, Jan 8, 2025 at 7:41 PM Eric Covener wrote: > > On Wed, Jan 8, 2025 at 1:27 PM Rainer Canavan > wrote: > > > > Hi, > > > > I'd like to short-circuit certain requests that contain no session > > cookie with a HTTP 403, an ErrorDocument and a few response headers. > > > > The following almos

Re: [users@httpd] ErrorDocument and Header always set ... env=

2025-01-08 Thread Eric Covener
On Wed, Jan 8, 2025 at 1:27 PM Rainer Canavan wrote: > > Hi, > > I'd like to short-circuit certain requests that contain no session > cookie with a HTTP 403, an ErrorDocument and a few response headers. > > The following almost works: > > RewriteCond %{REQUEST_METHOD} !OPTIONS > RewriteCond %{HTTP

[users@httpd] ErrorDocument and Header always set ... env=

2025-01-08 Thread Rainer Canavan
Hi, I'd like to short-circuit certain requests that contain no session cookie with a HTTP 403, an ErrorDocument and a few response headers. The following almost works: RewriteCond %{REQUEST_METHOD} !OPTIONS RewriteCond %{HTTP_COOKIE} !session= RewriteRule ^/foo - [E=FOO:FOO,R=403,L] Header alwa