[OFBiz] Users - Apache, ajp13 and https

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[OFBiz] Users - Apache, ajp13 and https

Can Castell
Hi all,
I want to multistore in one ofbiz instance.
Here is my configuration:

in ofbiz-containers.xml:
I used jety-container.
I remarked (closed) http-listener and https-listener.

I copied ecommerce components to ecommerce1
in ecommerce ofbiz-component.xml <virtual-host
host-name="www.testecommerce.com"/>
in ecommerce1 ofbiz-component.xml <virtual-host
host-name="www.testecommerce1.com"/>

in apache httpd.conf file
(my server's local ip is 192.168.1.0)

LoadModule jk_module modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /etc/httpd/logs/mod_jk.log

<VirtualHost 192.168.0.1:80>
  ServerAdmin [hidden email]
  ServerName www.testecommerce.com
  DocumentRoot /var/www/html/testecommerce

  JkMount /ecommerce ofbiz8009
  JkMount / ofbiz8009
  JkMount /* ofbiz8009
  CustomLog logs/testecommerce-access.log common
  ErrorLog logs/testecommerce-error.log
</VirtualHost>


<VirtualHost 192.168.0.1:80>
  ServerAdmin [hidden email]
  ServerName www.testecommerce1.com
  DocumentRoot /var/www/html/testecommerce

  JkMount /ecommerce1 ofbiz8009
  JkMount / ofbiz8009
  JkMount /* ofbiz8009
  CustomLog logs/testecommerce1-access.log common
  ErrorLog logs/testecommerce1-error.log
</VirtualHost>


******************************
workers.properties file:

worker.list=ofbiz8009
worker.ofbiz8009.type=ajp13
worker.ofbiz8009.host=localhost
worker.ofbiz8009.port=8009
worker.ofbiz8009.lbfactor=1
worker.ofbiz8009.cache_timeout=600
worker.ofbiz8009.socket_keepalive=1
worker.ofbiz8009.socket_timeout=300

********************************

Everything is running except https.
While getting https pages (for example login page:
https://www.testecommerce.com/control/checkLogin/main),
following errors
occured.
**********************************************************
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable
to complete your request.

Please contact the server administrator,
[hidden email]
 and inform them of the time the error occurred, and
anything you might have
done that may have caused the error.

More information about this error may be available in
the server error log.


----------------------------------------------------------------------------
----

Apache/2.0.52 (Fedora) Server at www.testecommerce.com
Port 443

***************************************************

Can anyone help me?

Thanks



               
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Apache, ajp13 and https

Michael Kuefner
Hi Can,

On Thu, Aug 18, 2005 at 06:02:12AM -0700, Can Castell wrote:

>
> Everything is running except https.
> While getting https pages (for example login page:
> https://www.testecommerce.com/control/checkLogin/main),
> following errors
> occured.
> **********************************************************
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was unable
> to complete your request.

Have a look at your global apache error.log file.
There should be more information.

As you wrote, you set up virtual hosts for Port 80.

Did you also set up the virtual hosts for Port 443 (https)?

Did you configure your apache webserver to support ssl?
(created ssl keys, added keys to config and so on)


  Michael

--
Michael Küfner                          Meisterbohne eLösungen
                                        Söflinger Strasse 100
Tel: +49-(0)731-399 499 0               D-89077 Ulm
                                        http://www.meisterbohne.de
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Apache, ajp13 and https

Can Castell
In reply to this post by Can Castell
Hi Michael,

Apache web server supports ssl.
I setup virtual host in httpd.conf:

<VirtualHost 192.168.0.1:80>
  ServerAdmin [hidden email]
  ServerName www.testecommerce.com
  DocumentRoot /var/www/html/testecommerce

  SSLEngine On
  SSLCertificateFile
/etc/httpd/conf/ssl.ebt/ofbizssl.jks
  SetEnvIf User-Agent ".*MSIE.*" nokeepalive
ssl-unclean-shutdown

  JkMount /ecommerce ofbiz8009
  JkMount / ofbiz8009
  JkMount /* ofbiz8009
  ...
  CustomLog logs/testecommerce-access.log common
  ErrorLog logs/testecommerce-error.log
   ....
</VirtualHost>

When starting apache web server following errors
occured (in error_log file)

[error] Init: Unable to read server certificate from
file
/etc/httpd/conf/ssl.ebt/ofbizssl.jks
[error] SSL Library Error: 218570875
error:0D07207B:asn1 encoding
routines:ASN1_get_object:header too long


Thanks in advance.
Can

----- Original Message -----
From: "Michael Kuefner" <[hidden email]>
To: "OFBiz Users / Usage Discussion"
<[hidden email]>
Sent: Thursday, August 18, 2005 4:32 PM
Subject: Re: [OFBiz] Users - Apache, ajp13 and https


> Hi Can,
>
> On Thu, Aug 18, 2005 at 06:02:12AM -0700, Can
Castell wrote:
> >
> > Everything is running except https.
> > While getting https pages (for example login page:
> >
https://www.testecommerce.com/control/checkLogin/main),
> > following errors
> > occured.
> >
**********************************************************

> > Internal Server Error
> > The server encountered an internal error or
> > misconfiguration and was unable
> > to complete your request.
>
> Have a look at your global apache error.log file.
> There should be more information.
>
> As you wrote, you set up virtual hosts for Port 80.
>
> Did you also set up the virtual hosts for Port 443
(https)?
>
> Did you configure your apache webserver to support
ssl?
> (created ssl keys, added keys to config and so on)
>
>
>   Michael
>
> --
> Michael Küfner                          Meisterbohne
eLösungen
>                                         Söflinger
Strasse 100
> Tel: +49-(0)731-399 499 0               D-89077 Ulm
>                                        
http://www.meisterbohne.de
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>



               
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs 
 
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - Apache, ajp13 and https

Michael Kuefner
Hi Can,

On Thu, Aug 18, 2005 at 08:29:21AM -0700, Can Castell wrote:
> When starting apache web server following errors
> occured (in error_log file)
>
> [error] Init: Unable to read server certificate from
> file
> /etc/httpd/conf/ssl.ebt/ofbizssl.jks
> [error] SSL Library Error: 218570875
> error:0D07207B:asn1 encoding
> routines:ASN1_get_object:header too long

Okay. That's it. Something is wrong with your certificate.

Have a look at the following website an set up a new
ssl certificate:


http://www.modssl.org/docs/2.8/ssl_faq.html#cert-real

At Step 4. sign the certificate by your own with the command
at the end of the paragraph.



Good luck
  Michael


--
Michael Küfner                          Meisterbohne eLösungen
                                        Söflinger Strasse 100
Tel: +49-(0)731-399 499 0               D-89077 Ulm
                                        http://www.meisterbohne.de
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users