Zen Cart Logo
Forums / Installing on a Windows Server / Site missing pics and formatting outside network

Site missing pics and formatting outside network

Views: 1,463

Results 1 to 4 of 4
17 Jun 2011, 3:53 PM
#1
techpro avatar

techpro

New Zenner

Join Date:
Jun 2011
Posts:
2
Plugin Contributions:
0

Site missing pics and formatting outside network

I was able to successfully install a working demo cart on local server. When viewing this cart from inside my network (on my subnet any machine) the cart works correctly.

My problem is that if I try to view cart outside my WAN connection (from home) site takes forever, images wont load and formatting is lost. I do get a html version of site with placeholders for images.

I am running a non-database (static) php site successfully from same apache server in a htdocs/www subdiretory this works inside and outside of my local netowrk (images and everything) your can view this @ https://www.amsdemexico.com.mx.

I am hosting behing firewall using NAT translation to get to server. dont forget I can serve a php site. It just wont do the cart.

Please advise version info below>>>>>

What version of Zen Cart?
1.3.9
Is it a new install or an upgrade?
New Install
What the addons/contributions you have installed?
none
What customizations have you made?
none
What type of server are you using?
apache
Are you installing locally?
yes
What operating system?
Windows 2003 standard
What version of PHP is installed on the server?
5.3.5
What version of MYSQL is installed on the server?
5.5.8
Any other details that might be important, i.e. the port number
80 for testing

17 Jun 2011, 3:57 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Site missing pics and formatting outside network

The HTTP_SERVER value you set in your configure.php files (as supplied during installation), is apparently pointing to a servername that's not understood from outside your home network.

You can see proof of this by looking at the raw HTML source and seeing the <base href=xxxxxx> value.

Simply update your configure.php files to use a HTTP_SERVER name that works from both inside and outside.

17 Jun 2011, 4:03 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site missing pics and formatting outside network

When you view from outside look at the view source and see what the "base ref" is

Your ststic site is very much like a html site

The speed for ZenCart will probably not improve due to whatever your up link speed is on the lan/wan

17 Jun 2011, 7:06 PM
#4
techpro avatar

techpro

New Zenner

Join Date:
Jun 2011
Posts:
2
Plugin Contributions:
0

Re: Site missing pics and formatting outside network

Thanks for your replies. It seemed to work.