I would like to understand how can i configure Apache webserver in a way that whenever someone sends a http request it should just load a 1x1 Pixel Gif..

Currently, response that we get is the text configured index.html in (/var/www/html)..

I tried Putting the image Source in index.html but it didnt work..


If you are trying to do something like redirect the index.html in home page to a Gif in another location.

Then, put below code in the index.html as per your convenience


<TITLE>Moving to Image</TITLE>
<META HTTP-EQUIV="refresh"CONTENT="1;URL=http://domain.com/folder/sample.gif">


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.