mod_jk2 https 2004-12-01 - By parviz
I didnt look at your config in detail. But that error message alone makes me think that either your tomcat(port 8080) or port 443 is not listening on the right socket. for example tomcat is listening on 127.0.0.1:8080 but your trying to go www.mysite.com:8080 ( which resolves to some pulicIp:8080). Or something similar. Lets run netstat and make sure port 443 and 8080 is listening where they should.
Parviz
On Tue, 2004-11-30 at 16:30, Andrew M wrote: > Ralph, > I am using Apache 2.0.52 and have made the following amendments: > > 1. create a certificate file : /library/Apache2/conf/mysiteNew.crt > 2. create a key file: /library/Apache2/conf/www.mysite.com.key > 3. Amend the ssl.conf file: > > <IfDefine SSL> > <VirtualHost 127.0.0.1:443> > ...... > SSLCertificateFile /Library/Apache2/conf/mysiteNew.crt > SSLCertificateKeyFile /Library/Apache2/conf/www.mysite.com.key > > ****** Start Note *** > RewriteEngine on > > RewriteRule "^/WEB-INF/?(.*)" "$0" [L,F,NC] > RewriteRule "^/(.*)\.gif$" "$0" [L] > RewriteRule "^/(.*)\.jpg$" "$0" [L] > RewriteRule "^/(.*)\.swf$" "$0" [L] > RewriteRule "^/(.*)\.php$" "$0" [L] > RewriteRule "^/(.*)\.m3u$" "$0" [L] > RewriteRule "^/(.*)\.mp3$" "$0" [L] > RewriteRule "^/(.*)\.html$" "$0" [L] > RewriteRule > (.*)\.(js|css|xml|xsl|kont|jx|xsp|svg)$https://localhost:8080/mysite/$1.$2 [P ,L] > RewriteRule "^/(.*)" "https://localhost:8080/$1" [P] > ProxyPassReverse / https://localhost:8080/ > ***End Note *** > </virtualHost> > </IfDefine> > > Note: Not sure about the rewrite code in the virtual host. Thethinking > behind this is to be able to do https://www.mysite.com in theurl and > be directed to port 8080!!! http://www.mysite.com works fine. > > Suffice to say, when I enter https://www.mysite.com into the url I > get'the connection was refused when attempting to > contactwww.mysite.com'. What am I doing wrong??? > > many thanks > > Andrew > > p.s. I have enabled port 443 in the firewall as well. > > > On 30 Nov 2004, at 22:10, Ralf Glauberman wrote: > > plain text please! > > did you have a look at the general https documentation. i > think youwill have to set up ssl as described there. try it, > if you are havingproblems, ask again. > > ----- Original Message ----- From: Andrew M > To: users@(protected) > Sent: Tuesday, November 30, 2004 7:56 PM > Subject: [users@(protected)] mod_jk2 https > > > Hi, > I currently have apache sitting at the front end passing > requests tojboss on port 8080 like so in my http.conf: > > # mod_jk2 configuration > LoadModule jk2_module modules/mod_jk2.so > > # for jboss > RewriteEngine on > > RewriteRule "^/WEB-INF/?(.*)" "$0" [L,F,NC] > RewriteRule "^/(.*)\.gif$" "$0" [L] > RewriteRule "^/(.*)\.jpg$" "$0" [L] > RewriteRule "^/(.*)\.swf$" "$0" [L] > RewriteRule "^/(.*)\.php$" "$0" [L] > RewriteRule "^/(.*)\.m3u$" "$0" [L] > RewriteRule "^/(.*)\.mp3$" "$0" [L] > RewriteRule "^/(.*)\.html$" "$0" [L] > RewriteRule > (.*)\.(js|css|xml|xsl|kont|jx|xsp|svg)$http://localhost:8080/mysite/ $1.$2 [P,L] > RewriteRule "^/(.*)" "http://localhost:8080/$1" [P] > ProxyPassReverse / http://localhost:8080/ > > How would I, in this instance, setup https? Bare with me if > this seemsfairly obvious as I have never worked with https > before. > > many thanks > > p.s. How do I then go about creating/obtaining a certificate > to sit inapache to make the whole ssl thing work? > Andrew > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > ServerProject. > See <URL:http://httpd.apache.org/userslist.html> for more > info. > To unsubscribe, e-mail: users-unsubscribe@(protected) > " from the digest: > users-digest-unsubscribe@(protected) > For additional commands, e-mail: users-help@(protected) > > > > > ______________________________________________________________________ > > +Thehome of urban music > + http://www.beyarecords.com > > > > ______________________________________________________________________ > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@(protected) > " from the digest: users-digest-unsubscribe@(protected) > For additional commands, e-mail: users-help@(protected)
|
|