Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
It's possible I've just gotten it to work. Still testing but this is very promising I found a blogger who gave code on how to do this. http://drincruz.blogspot.com/2009/05/apache-redirecting-missing-images-with.html Since I was already getting the DocumetRoot in the path, I decided to har

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
Yes. Do you want a snippet or the whole thing? Size 442 KB. I'm new to this forum, do I just attach it to the reply email? Julie Kurpa >>> Yehuda Katz 5/3/2016 11:45 AM >>> Do you have logs from either of those? - Y On Tue, May 3, 2016 at 11:44 AM, Julie Kurpa wrote: > I put the "no_sk

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Yehuda Katz
Do you have logs from either of those? - Y On Tue, May 3, 2016 at 11:44 AM, Julie Kurpa wrote: > I put the "no_sketch.jpg" image in path > "/mnt/data/pawebdata/docs/images/sketches" and indeed, every jpg showed the > "no_sketch.jpg" image. > > The 302 didn't seem to do anything. > > Julie Kurp

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
I put the "no_sketch.jpg" image in path "/mnt/data/pawebdata/docs/images/sketches" and indeed, every jpg showed the "no_sketch.jpg" image. The 302 didn't seem to do anything. Julie Kurpa >>> "Julie Kurpa" 5/3/2016 11:34 AM >>> Yes there is an alias for the images specified in the vhosts

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
Yes there is an alias for the images specified in the vhosts.conf file.:) Alias /images/ /mnt/data/pawebdata/images/ AllowOverride None Order allow,deny Allow from all I can create the directory path "/mnt/data/pawebdata/docs/images/sketches" just to see if the "no_sketch.jpg" show

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Yehuda Katz
The images have to be accessible somehow: Just to clarify, you said: - The DocumentRoot is "/mnt/data/pawebdata/docs" - The images are located in "/mnt/data/pawebdata/images" How does the browser ever load any image? Is there an alias directive somewhere in the configuration? Can you put the imag

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
I can appreciate that Nick. Can you provide further guidance? I see that there is a ErrorDocument 404 /404.html But I don't know what you suggest I do with this. For pages that are missing, I'd like the 404.html to show. For an image within a page, I'd like the "no_sketch.jpg" to show.

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
BTW, Here is a snippet from the rewrite log: 172.30.29.19 - - [03/May/2016:11:07:56 --0400] [pawebdev1.vcgov.org/sid#7f47d6a93b60][rid#7f47d6ba7ce8/initial] (2) init rewrite engine with requested uri /images/sRegion.png 172.30.29.19 - - [03/May/2016:11:07:56 --0400] [pawebdev1.vcgov.org/sid#7f4

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
Thanks Yehuda, I tried your suggested code already and have just retried it. The behavior is that all jpg's are now not showing at all. >From what I tell from the rewrite.log, it is pasting the DocumentRoot path in >front of the path to the "no_sketch.jpg" for all JPG references. The D

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Yehuda Katz
On Tue, May 3, 2016 at 10:52 AM, Julie Kurpa wrote: > The sketches themselves are JPGs located within a directory on the Linux > server. > If the JPG for a property is found to be missing, I would like to show an > alternate JPG called "no_sketch.jpg". > I've tried a gazillion variations of the

Re: [users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Nick Kew
On Tue, 2016-05-03 at 10:52 -0400, Julie Kurpa wrote: > I've been trying various combinations of the Rewrite module Bad idea. Don't go looking for the brittle and difficult solution until you've looked for an easy one. In your case, ErrorDocument. -- Nick Kew --

[users@httpd] Show Alternate Image if Requested Image is Missing

2016-05-03 Thread Julie Kurpa
I am trying to modify an Apache configuration in Suse Linux. The website is used to view Property and a mixture of html and cgi scripts. The cgi scripts query an oracle database and supply information to the screen, one of which, is a sketch of the property. The sketches themselves are JPGs