You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Luigi Bellio <lu...@gmail.com> on 2023/11/14 14:22:38 UTC
RE: Re: [users@httpd] Unable to unset Set-Cookie response header&In-Reply-To=
Hi Eric,
thanks for your feedback ... I just tried, nothing is changed ...
moreover as documented the "always" directive should apply to all
response codes not only "on success".
Thanks for any support,
Luigi.
On 2023/11/14 13:22:06 Eric Covener wrote:
> > Header always unset Set-Cookie
>
> Try without "always"
>
> On Tue, Nov 14, 2023 at 6:25 AM Luigi Bellio <lu...@gmail.com> wrote:
> >
> > Hi all,
> >
> > we are using version 2.4.57 of Apache HTTPd with this configuration
> >
> > <VirtualHost *:1080>
> > ServerName <OMITTED>:1080
> > CustomLog <OMITTED> combined
> > ErrorLog <OMITTED>
> >
> > DocumentRoot "/usr/local/apache2/conf/extra"
> >
> > <Directory /usr/local/apache2/conf/extra>
> > Require all granted
> > </Directory>
> >
> > ErrorDocument 502 <OMITTED>
> > ErrorDocument 503 <OMITTED>
> >
> > ProxyErrorOverride On
> >
> > ProxyPass /favicon.ico !
> > ProxyPass /error/ !
> >
> > Header always unset Set-Cookie
> >
> > ProxyPreserveHost On
> >
> > ProxyPass / http://<OMITTED>:1080/
> > ProxyPassReverse / http://<OMITTED>:1080/
> > </VirtualHost>
> >
> > and the response header "Set-Cookie" returned by the proxied
backend is not unset and is returned to client. What is missing?
> >
> > Thanks for your support?
> >
> > Luigi Bellio.
>
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Re: [users@httpd] Unable to unset Set-Cookie response header&In-Reply-To=
Posted by Rainer Canavan <ra...@avenga.com.INVALID>.
On Tue, Nov 14, 2023 at 3:24 PM Luigi Bellio <lu...@gmail.com> wrote:
>
> Hi Eric,
>
> thanks for your feedback ... I just tried, nothing is changed ...
> moreover as documented the "always" directive should apply to all
> response codes not only "on success".
You're missing one important issue the documentation raises:
https://httpd.apache.org/docs/2.4/mod/mod_headers.html#header
"always" and "onsuccess" apply to different sets of headers, therefore it
might help if you try duplicating your 'Header unset' line, one with *and* one
without "always".
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org