You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Kairam, Raj" <Ka...@coned.com> on 2000/09/25 17:18:52 UTC

Accessing images from a different server

I have Apache 1.3.12 running on a HP-UX 11 (Machine_A).
The document root is /usr/local/apache/htdocs.
I need the ability to make images on a different HP-UX 10.20 (Machine_B)
available for users from a web browser.
The images are in a directory /vault30 which is exported on Machine_B and is
nfs mounted on Machine_A.
In other words from Machine_A I can cd to /vault30 and see the images (
217359-0-2.tif) as if it is a local file.
I have the file /usr/local/apache/htdocs/index.html which has the following
line
<P><IMG SRC="/vault30/217359-0-2.tif"><BR>

Re: Accessing images from a different server

Posted by Carlos Ramirez <ra...@roses.bna.boeing.com>.
Create an Alias to the vault30 directory in your httpd.conf file, like so:

Alias /vault30 /vault30

-Carlos



"Kairam, Raj" wrote:

> I have Apache 1.3.12 running on a HP-UX 11 (Machine_A).
> The document root is /usr/local/apache/htdocs.
> I need the ability to make images on a different HP-UX 10.20 (Machine_B)
> available for users from a web browser.
> The images are in a directory /vault30 which is exported on Machine_B and is
> nfs mounted on Machine_A.
> In other words from Machine_A I can cd to /vault30 and see the images (
> 217359-0-2.tif) as if it is a local file.
> I have the file /usr/local/apache/htdocs/index.html which has the following
> line
> <P><IMG SRC="/vault30/217359-0-2.tif"><BR>
> >From a browser, if the user gives the URL as http://Machine_A/index.html the
> browser should let him access the file 217359-0-2.tif.
> The browser has a plugin and that can view this file if it is actually there
> in /usr/local/apache/htdocs directory.
> Since the file is physically located on a different machine, despite the
> directory being nfs mounted, the browser fails to access that file.
> How do I make the Apache Server on Machine_A get to the file on Machine_B
> and make it available from the browser ?.
>
> Any advise on how to configure this in httpd.conf will be greatly
> appreciated.
> Thanks
> Raj Kairam

--
-----------------------------------------------------------------------
Carlos Ramirez + Boeing + Reusable Space Systems + 714.372.4181
-----------------------------------------------------------------------
- Someday I'll find that peer and reset his connection!