[SOLVED] localhost is working ok, but all images are 403
Posted by: AshlynnXD (104.240.25.---)
Date: April 27, 2017 08:09PM

I recently upgraded to WampServer Version 3.0.6 64bit the latest version. Before i did this the images worked just fine, but now it is broken and i don't know why.

After upgrade.
Screenshot [prntscr.com]
But in the editor are just fine. all image links are pointed to the right directory.
I tested the link to each image, its correct. But not on the page, it comes out with a broken icon.

If I upload it to the real server, it all works fine, but not on wamp > localhost which i need to work
so i can check how it looks/feels before i post it...

Steps i took to resolve it.
1 checked the url links to the images like 20 times.
2 restarted wampserver, + services.
3 tried chrome, firefox, ie...

Here is how i have it on the account page
<img src="../images/credit.JPG" width="25" height="25" />

I even tried a direct link to it, still broken.
<img src="C:/wamp64/www/images/credit.JPG" width="25" height="25" />

Everything else is ok after the upgrade.. But this is frustrating me! :shock:
Is there a step i need to do to allow images now on the latest build?




Edited 1 time(s). Last edit at 04/28/2017 12:00AM by AshlynnXD.

Options: ReplyQuote
Re: localhost is working ok, but all images are 403
Posted by: Otomatic (Moderator)
Date: April 27, 2017 09:30PM

Hi,

> If I upload it to the real server, it all works fine, but not on wamp > localhost
Because the real server works with VirtualHost and the path of image is relative to the $_SERVER[DOCUMENT_ROOT] that is the directory of the site.

You must use the same with Wampserver, use VirtualHost : The need for Virtual Host

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: localhost is working ok, but all images are 403
Posted by: AshlynnXD (104.240.25.---)
Date: April 27, 2017 10:22PM

But why did it just suddenly stop working after installing the new version, i did not change anything but upgrade. it dont make any sense, its like something is blocking it.

i will look around in the options to see if it has that option but its really odd, if not well i guess i will just uninstall this wamp and go back to the one i had :/


[SOLVED] i turned off the vhost modual and it is working again.
i dont need it on since its just an offline test. i can use my real server for final test/config.



Edited 2 time(s). Last edit at 04/28/2017 12:01AM by AshlynnXD.

Options: ReplyQuote


Sorry, only registered users may post in this forum.