Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have configured apache for localhost and served a image. But when I tried to access that image through localhost in my browser, the image doesn't show up. The access log in apache shows status code of 200, but network log in my browsers dev tool shows (failed)net::ERR_CONNECTION_RESET


My access log :

::1 - - [02/Dec/2021:19:09:02 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:09:21 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:09:40 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:10:00 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:10:19 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:10:38 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:11:02 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:11:21 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:11:40 +0530] "GET /image.jpg HTTP/1.1" 200 10223
::1 - - [02/Dec/2021:19:12:11 +0530] "GET /image.jpg HTTP/1.1" 200 10223



Screenshot of browser dev tool[^]

What I have tried:

I have tried all types of images(png, jpg etc), only images lower than 6kb are showing up.
Posted
Updated 2-Dec-21 3:12am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900