You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc <Ma...@f1-outsourcing.eu> on 2023/05/13 15:01:40 UTC

[users@httpd]

How do I get that the file (docroot)/images/favicon.ico is not loaded from the disk but instead from the /tmp/os-favicon.ico?

<Files /images/favicon.ico>
"/tmp/os-favicon.ico"
          </Files>

https://httpd.apache.org/docs/2.4/mod/core.html#files
Is this te best manual?? "# Insert stuff that applies to cat.html here" is not very helpful. How should ever be able to learn/read this from the documentation???




Re: [users@httpd]

Posted by Frank Gingras <th...@apache.org>.
Well, we can't guess that you provided the wrong path. Hence the
recommendation for better filesystem locations.

On Mon, May 15, 2023 at 10:03 AM Marc <Ma...@f1-outsourcing.eu> wrote:

> /tmp is just an example. Files are located elsewhere, actually at a
> location where the rest should not be available/accessible. I only want to
> 'redirect' this file.
>
> >
> > You want to use <Directory /tmp> instead. I also strongly recommend
> > storing your images in another path.
> >
> > On Mon, May 15, 2023 at 3:48 AM Marc <Marc@f1-outsourcing.eu
> > <ma...@f1-outsourcing.eu> > wrote:
> >
> >
> >
> >
> >       > >
> >       > > How do I get that the file (docroot)/images/favicon.ico is not
> > loaded
> >       > from the disk but instead from the /tmp/os-favicon.ico?
> >       >
> >       > Use the Alias directive.
> >       > https://httpd.apache.org/docs/2.4/urlmapping.html
> >       >
> >
> >       Hmmm, so I am ending up with somwthing like this. Is that really
> > the best way to do this?
> >
> >            61                 Alias "/images/favicon.ico" "/tmp/os-
> > favicon.ico"
> >            62                 <Location /tmp/favicon.ico>
> >            63                         Require all granted
> >            64                 </Location>
> >
> >
>
>

RE: [users@httpd]

Posted by Marc <Ma...@f1-outsourcing.eu>.
/tmp is just an example. Files are located elsewhere, actually at a location where the rest should not be available/accessible. I only want to 'redirect' this file.

> 
> You want to use <Directory /tmp> instead. I also strongly recommend
> storing your images in another path.
> 
> On Mon, May 15, 2023 at 3:48 AM Marc <Marc@f1-outsourcing.eu
> <ma...@f1-outsourcing.eu> > wrote:
> 
> 
> 
> 
> 	> >
> 	> > How do I get that the file (docroot)/images/favicon.ico is not
> loaded
> 	> from the disk but instead from the /tmp/os-favicon.ico?
> 	>
> 	> Use the Alias directive.
> 	> https://httpd.apache.org/docs/2.4/urlmapping.html
> 	>
> 
> 	Hmmm, so I am ending up with somwthing like this. Is that really
> the best way to do this?
> 
> 	     61                 Alias "/images/favicon.ico" "/tmp/os-
> favicon.ico"
> 	     62                 <Location /tmp/favicon.ico>
> 	     63                         Require all granted
> 	     64                 </Location>
> 
> 


Re: [users@httpd]

Posted by Frank Gingras <th...@apache.org>.
You want to use <Directory /tmp> instead. I also strongly recommend storing
your images in another path.

On Mon, May 15, 2023 at 3:48 AM Marc <Ma...@f1-outsourcing.eu> wrote:

>
>
> > >
> > > How do I get that the file (docroot)/images/favicon.ico is not loaded
> > from the disk but instead from the /tmp/os-favicon.ico?
> >
> > Use the Alias directive.
> > https://httpd.apache.org/docs/2.4/urlmapping.html
> >
>
> Hmmm, so I am ending up with somwthing like this. Is that really the best
> way to do this?
>
>      61                 Alias "/images/favicon.ico" "/tmp/os-favicon.ico"
>      62                 <Location /tmp/favicon.ico>
>      63                         Require all granted
>      64                 </Location>
>
>

RE: [users@httpd]

Posted by Marc <Ma...@f1-outsourcing.eu>.

> >
> > How do I get that the file (docroot)/images/favicon.ico is not loaded
> from the disk but instead from the /tmp/os-favicon.ico?
> 
> Use the Alias directive.
> https://httpd.apache.org/docs/2.4/urlmapping.html
> 

Hmmm, so I am ending up with somwthing like this. Is that really the best way to do this?

     61                 Alias "/images/favicon.ico" "/tmp/os-favicon.ico"
     62                 <Location /tmp/favicon.ico>
     63                         Require all granted
     64                 </Location>


Re: [users@httpd]

Posted by Eric Covener <co...@gmail.com>.
On Sat, May 13, 2023 at 11:03 AM Marc <Ma...@f1-outsourcing.eu> wrote:
>
> How do I get that the file (docroot)/images/favicon.ico is not loaded from the disk but instead from the /tmp/os-favicon.ico?

Use the Alias directive. https://httpd.apache.org/docs/2.4/urlmapping.html

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