Post by matgenois » Fri Dec 06, 2013 11:29 pm

Hi everyone!
IT guy here but I'm new to Opencart. I've installed Opencart 1.5.6 on my personal PC to work with before going to production. I want to be able to show to my partners how the site is going and make them used to the admin console.

The site is working great locally. But when I try to access the site from WAN (outside my home network), I can't see any images and style. When I enter the URL of an image, it shows up. Doesn't seem like a permission issue since Procmon doesn't catch any ACCESS DENIED event. Also, to test if it's a network issue, I try to put my web server in DMZ. This don't work either.

So now I begin to think it's a config thing in opencart. Anyone has any idea? I've done some searching but did not find anyone with the same problem then me who give the solution.

Thanks!
Mat ???

Newbie

Posts

Joined
Fri Dec 06, 2013 11:17 pm

Post by butte » Sat Dec 07, 2013 11:36 pm

You probably just need to rethink it with your IT hat on. Do you have protection against OTHERS raiding your images in effect? That would usually be a server setting in your host control panel but on your local machine you may have something of the sort preset. Do you have a self-generated certificate running locally, and DIR sections in both config.php files NOT set for https:// for images? That is a quick hand edit. You SHOULD be able to access your localhost at an address visible from WAN if the router allows reaching the machine's LAN address OR if your machine is in the router's sacrificial lamb position (out in front of router protections). That involves router settings. A trial quick fix to try is to disable .htaccess -- just rename it or slide it into a setaside/ directory (you may be blocking view of .jpg, .png, and .css in a way that is in the way, although then you should not be able to address an image URL and see it). Ideally, whether from LAN or WAN if your machine can be seen, as a webserver, then all should appear well from LAN and from WAN, alike. Apache or similar must be basically okay (such as in directory aliases), since from WAN the OC installation itself is visible.

[Your identical other post :22 later at http://forum.opencart.com/viewtopic.php ... 43#p460268 is superfluous, one suffices.]

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by matgenois » Wed Jan 15, 2014 2:12 am

Thanks for replying. Sorry it took so long but I found the solution and also, haven't been alerted that I had a reply on this post.

My problem was that I install opencart using my NAT address (is. localhost or 192.168.1.x). During the opencart installation, the config files host value was my NAT address (192.168.1.x) so when I was outside my home network, I wasn't able to see any images.

Thanks again for replying.
Mathieu

Newbie

Posts

Joined
Fri Dec 06, 2013 11:17 pm

Post by butte » Wed Jan 15, 2014 10:08 am

Welcome. Since FROM WAN the LAN OC was visible but the images were not, and now FROM WAN the LAN OC is visible and images also are, something else was fixed along for the ride, possibly LAN self-issued SSL. Can't just see part of it from WAN unless, for example, SSL or the HTTPS sections affected seeing images. Ya did it, "with your IT hat on" . . . but wait till you know it stays fixed, then edit your opening title Solved.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by matgenois » Fri Apr 11, 2014 10:43 pm

My problem was that I installed opencart from locahost ip. Then both config.php file was containing localhost ip address instead of WAN ip address.

Thanks!

Newbie

Posts

Joined
Fri Dec 06, 2013 11:17 pm
Who is online

Users browsing this forum: No registered users and 19 guests