Forums / Installing on a Windows Server / Zen cart wont work with virtual host ?

Zen cart wont work with virtual host ?

Locked

Views: 3,970

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
15 Jun 2006, 9:19 AM
#1
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Zen cart wont work with virtual host ?

Pleasseee I already dont know what a hell is going on here
i cant configure my cart to use mu VHost ...
here is the configure.php file

define('HTTP_SERVER', 'e-storebg.com/');
define('HTTPS_SERVER', 'e-storebg.com/');


// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', 'e-storebg.com/');
define('DIR_WS_HTTPS_CATALOG', 'e-storebg.com/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', 'C:/apache2triad/htdocs/e-storebg.com/');

and here is the httpd.conf

NameVirtualHost www.e-storebg.com
<VirtualHost www.e-storebg.com> 
    ServerAdmin [email protected] 
    DocumentRoot C:/apache2triad/htdocs/e-storebg.com 
    ServerName www.e-storebg.com 
    ServerAlias e-storebg.com 
    DirectoryIndex index.php
    ErrorLog C:/apache2triad//logs/www.e-storebg.com-error.log 
    CustomLog C:/apache2triad//logs/www.e-storebg.com-access.log combined 
</VirtualHost>

it wont work shows me links in apache like : ...,

http://e-storebg.com/e-storebg.com/e-storebg.com/e-storebg.com/index.php?main_page=index&cPath=1......

Im Using
Apache/2.0.55 (Win32) PHP/4.4.2 mod_ssl/2.0.55 OpenSSL/0.9.8a
OS: Windows Advanced Server 2003 R2
Zen Cart v 1.3x

Also Im behing router which IP is: 193.68.140.40
Domain DNS is also like this on router this is not a problem but I dont know

I cant get it pleaseee anyy one

Negative feelings were burned by the progressive increase of Euphoria

15 Jun 2006, 1:24 PM
#2
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

ok I found out how to configure Apache and I did it know the store is working

but https wont work OK when I decide to log into profile or chust to check out it wont load

the apache is ok it cant be problem something is in the zencart I dont
I made it same congig and for 443 port but it wont work
what I miss and where ?

Negative feelings were burned by the progressive increase of Euphoria

15 Jun 2006, 3:54 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

Go to your Zen Cart admin panel --> Tools --> Server Info and scroll down until you find the Open SSL entries. That will tell you if ssl is installed or not.

Also, make sure that you have ssl enabled in both of your configure.php files.

Vger

15 Jun 2006, 5:14 PM
#4
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

Apache/2.0.55 (Win32) PHP/4.4.2 mod_ssl/2.0.55 OpenSSL/0.9.8a

// Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');

I have this I have SSL I mean it works but when I click to login
It wonts to display the page I have one more errors at the apache

In the ssl error log i Found this

[Thu Jun 15 19:14:46 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?

So i know that this is not for this forum but how could I manage my certificates how could i genarate one or what .. i dont know :no:

Negative feelings were burned by the progressive increase of Euphoria

15 Jun 2006, 10:05 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

What is your server name then? Once you know that you can change your local configure.php files to match it and the ssl problems should be resolved. It may be that your server uses 127.0.0.1 (the ip address for localhost), or the ip address of a router attached your computer, or even the name of a computer on a network.

Vger

16 Jun 2006, 3:49 PM
#6
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

I got it the problem isn't in the Zen Cart I have problems with certificates by apache I have to ganarate Certificate wich name has to match with that on one Server name (the same as its site and domain name).
This is really confusing couse I generate it but i can't find where my apache save them I already posted to their forum but still no answer.

If any one have expirience with that Should be great to help.

Sorry about the offtopic but Im going to overload and I need some help but noone pay attention I read out all toturials and help files but still nothing :down:

I will be grateful for any help gaved ?

Negative feelings were burned by the progressive increase of Euphoria

16 Jun 2006, 4:05 PM
#7
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

The cert folders/files should be saved in the Apache 'conf' folder. OpenSSL is in the Apache bin folder.

Why are you trying to generate a self-signed certificate for your server? If this is an offline (Intranet) server, for testing only, then that's fine, but if it's an online web server on which you intend to run websites then a self-signed ssl cert is a waste of time.

Certificates, to be 'Trusted', have to be issued to a domain but issued by a Trusted Provider, like Thawte, VeriSign etc. If your cert is self-signed (issued to your domain and issued by your domain) then all customers will see are warning messages every time they switch to an https page.

Vger

16 Jun 2006, 5:34 PM
#8
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

And the only way to exclude this problem is to buy a certificate ?
from a Trusted provider ?

Apache server name is e-storebg.com as zen cart shopping site
I dont what meaning it has....

Negative feelings were burned by the progressive increase of Euphoria

16 Jun 2006, 9:20 PM
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

Usually when you buy a dedicated (managed) server it comes with a full ssl cert in the name of the domain which the server uses.

If you only want to run one website on this server then you just need to buy an ordinary ssl certificate. If you intend to run many websites on the same server then it becomes more expensive because then you need to buy a wildcard ssl cert to provide a shared ssl for all sites on the server.

But first you have to learn how to generate a CSR (Certificate Signing Request) in the name of the domain used by that server. Then you go to someone like https://www.ev1servers.net and buy a Starter SSL (provided by Geotrust) for just $14.95 a year, or GoDaddy whose basic ssl costs $19.95 a year - a little more expensive but they send the cert as a file so it may be easier to install if you do not have a control panel to manage the server.

Vger

17 Jun 2006, 12:09 PM
#10
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Re: Zen cart wont work with virtual host ?

thank you Vger I already have a clean image of that what Im soppused to do.
Im really greatfull of that info also I read the SSL pdf distributed by GoDaddy.com and every detail is clear
one more time thank you :thumbsup:

Negative feelings were burned by the progressive increase of Euphoria