On Sat, Jul 13, 2024 at 5:25 AM Marc <m...@f1-outsourcing.eu> wrote:

> You can't do this with something like alias?
>
> Alias "/images/logo.svg" "/var/www/html/berat/public/logo.svg"
>
> >
> > I'd like something like::
> >
> >    ProxyPass /logo.svg   http://1.2.3.4/berat/public/logo.svg
> >    ProxyPassReverse /logo.svg   http://1.2.3.4/berat/public/logo.svg
> >     doesn't work
> >
> >    ProxyPass logo.svg   http://1.2.3.4/berat/public/logo.svg
> >    ProxyPassReverse logo.svg   http://1.2.3.4/berat/public/logo.svg
> >       doesn't work
> >
> > in the page source
> >    href="/logo.svg"
> >
> >  which should redirect to --  /var/www/html/berat/public/logo.svg
> >     or http://1.2.3.4/berat/public/logo.svg
> >
> > thanks
> >
> >
> >
> > >
> > >
> > >
> > >>
> > >> I have a situation where I'm trying to create a foo.config file for a
> > >> test apache app.
> > >>
> > >> in the html of the app, i have a href="/test.svg".
> > >>
> > >> the actual test.svg resides in the physical dir:
> > >>  /var/www/html/berat/public/test.svg
> > >>
> > >> so I'm trying to figure out how to handle this. As far as I can tell,
> > >> this is a reverse proxie issue
> > >>
> > >> but I can't do
> > >>
> > >>     another
> > >>      ProxyPass '
> > >>
> > >>      as I'm already doing the following which works...
> > >>       ProxyPass / http://127.0.0.1:3000/
> > >>       ProxyPassReverse / http://127.0.0.1:3000/
> > >>
> > >>  is there some method that I trigger off the actual "filename"
> > >>
> > >> are there any pointers/examples you can point me to..
> > >>
> > >> This appears to be the last issue I'm grappling with.
> > >>
> > >> thanks
> > >>
>
>
If /logo.svg should be mapped, to  http://1.2.3.4/berat/public/logo.svg,
then use a single ProxyPass directive before the other:

ProxyPass /logo.svg http://1.2.3.4/berat/public/logo.svg

Reply via email to