Now I understand what is my problem.
I should have specified something like following example.

DocumentRoot /home/iida/apache-2.4.43/htdocs
<Location /dir_name>
      Header set Pragma no-cache
      Header set Cache-Control no-cache
</Location>

Now  apache added headers if I access to html under /dir_name.

Thanks for the comment.
Masanari Iida

On Tue, Apr 14, 2020 at 8:05 PM Eric Covener <cove...@gmail.com> wrote:
>
> On Tue, Apr 14, 2020 at 12:49 AM Masanari Iida <standby2...@gmail.com> wrote:
> >
> > Hello
> >
> > I would like to use "Header set " directive within Location directive.
> > But it doesn't work.
> > Example.
> >   <Location /home/iida/apache-2.4.43/htdocs>
>
> ^^ Looks a lot like a Directory argument.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>

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

Reply via email to