Create a directory somewhere -- suppose you have <server_root>/midgard;
then create directory <server_root>/midgard/images.

In your httpd.conf file:

Alias    /images/    "<server_root>/midgard/images/"        # trailing
'/' required

<Directory "<server_root>/midgard/images">
            .... stuff
</Directory>

or

<Location /images/>
    .... stuff
</Location>

These directives must be within the <Virtual Host> container.

Put your images in this directory and refer to them as
"/images/<img-name>".

Enjoy!

the cat
>^..^<

PS -- I hope you are running an *ix because I refuse to know anything
about MS...



Miles Scruggs wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ok I have the admin site and the test site both working with images.
> Now I can not get a new site to view images.  The new site is using
> name based virtual hosts as are the example and admin site so that
> shouldn?t be a problem.  I have scattered the images from the
> document root, as specified in httpd.conf, on down trying to get it
> to find them.  I have pointed the html to look in all sorts of
> subdirs.  Here is what I?m assuming
>
> ?/? = ?document root? as per httpd.conf not set in the vhosts section
> though.
> So I?m trying to load an image by   <img src="/dir/image.gif?>  where
> dir is located directly below document root.  Please let me know
> where I?m going wrong
>
> Miles Scruggs
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBONp3xQr+l9aWyTEAEQJhcwCeJlwKy9wZ6NPzul93ePGnyvuxmNQAniEN
> Q+e5IzDDKLkzaEpMhFkdlDNL
> =qITB
> -----END PGP SIGNATURE-----
>
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
>
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to