Forum Moderators: phranque
the problem is that when i have the error 403 (forbidden) page come up requests to www.cnn.com, it will throw up the error page but none of the images will show up. in the access_log it looks like the server is trying to look for www.cnn.com\pic1.gif and www.cnn.com\pic2.gif.
and also if i block the website www.nba.com, all the text will show up but none of pictures. similar to the above, the access_log shows that it is looking for the pictures from www.nba.com\pic1.gif and www.nba.com\pic2.gif.
so my question is, how come my customized error 403 page won't display pictures from my local machine? and how do i get it to serve up pics in the same directory as my error page?
so in my error page would i have to point to where the images are, like
<img src="/var/apache/htdocs/pic1.gif">
or since it's in the same directory as the error page can i just be like
<img src="pic1.gif">
i just don't know what to put, to point to the pics physically on my machine.
What you can try is use mod_rewrite. Give some weird names to the images (in the html code of the 403 page only!) My403AccessForbidden1stImage.gif for example, and try to set up a rewriting like this:
RewriteRule My403AccessForbidden1stImage\.gif$ var/apache/htdocs/pic1.gif [L]
RewriteRule My403AccessForbidden2ndImage\.gif$ var/apache/htdocs/pic2.gif [L]
when i use the statement:
proxyblock www.google.com
and i connect to my proxy server and request www.google.com, the text for my customized 404 comes out, but as i stated earlier the pictures don't come out.
i look on the access log and it shows that www.google.com/pic1.gif and www.google.com/pic2.gif were requested. since all google requests are blocked the pictures aren't coming out on my customized 404.
how can i get my pictures to show up from /var/apache/htdocs/, instead of the requested webite?