mod_jk2 https 2004-11-30 - By Andrew M
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. The thinking behind this is to be able to do https://www.mysite.com in the url 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 contact www.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 you > will have to set up ssl as described there. try it, if you are having > problems, 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 to > jboss 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 seems > fairly 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 in > apache to make the whole ssl thing work? > Andrew > > --------------------------------------------------------------------- > 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) > >
?+The home 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)
|
|