[102293] in RedHat Linux List

home help back first fref pref prev next nref lref last post

RE: Perl and tag

daemon@ATHENA.MIT.EDU (Charles Galpin)
Wed Dec 2 11:44:52 1998

Date: Wed, 2 Dec 1998 11:41:08 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: "Kevin W. Reed" <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Ronnie

if you go to http://localhost, where does the page that appears live? This 
is your document root. you could put your images directory in that 
directory, and the path you show would work. You can also configure apache 
to recognize /images/ and point to any directory you choose with the Alias 
command.Here is an example from httpd.conf

Alias /images/ /export/other/images/


===== Original Message from "Kevin W. Reed" <redhat-list@redhat.com> at 
12/02/98 11:33 am
>Told to us by Ronnie Thum (cwthum@network2.cs.usm.my)
>on Wed, Dec 02, 1998 at 11:06:47PM +0800
>
>> I moved the images to /home/httpd/images/*.gif
>> And my *.pl is at /home/httpd/cgi-bin/*.pl
>> I call <IMG SRC=\"/images/pic.gif\"> in my perl script.
>>
>> I can't load the images...it is showing the default image icon...
>
>Isn't the doc root for your server set to /home/httpd/htdocs ?  If so,
>you would need to have the images directory under that.
>
>Remember that the cgi-bin directory is a redirected directory to keep
>people out of it for normal access.  Any referecene to cgi-bin will
>be redirected by the server to /home/httpd/cgi-bin
>
>Default access such as <IMG SRC="/images" ...  would be at the root
>of the document area specified by the server.
>

-- Charles Galpin  <cgalpin@lighthouse-software.com>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post