Hi All,
Actually I was very basic in Apache Configuration. I have seen lot of threads already discussed here about this topic. But still i couldn't make it work. I don't know how to resolve the issue.
My Current Situation:
I have running website which was developed in Java and running in Tomcat and Apache in front.
What I have done:
I have added virtualhost for my 443 port in httpd.conf and rewrite rules in rewrite.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLSessionCache shm:/usr/local/apache2/logs/ssl_cache_shm
SSLSessionCacheTimeout 600
NameVirtualHost www.mysite.com:443
<VirtualHost www.mysite.com:443>
JkMountCopy On
ServerName www.mysite.com
DocumentRoot "C:/project/"
SSLEngine on
SSLOptions +StrictRequire
SSLProtocol -all +TLSv1 +SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
SSLCertificateFile "D:/apache2.2/conf/extra/ssl/www.mysite.com.crt"
SSLCertificateKeyFile "D:/apache2.2/conf/extra/ssl/www.mysite.com.key"
SSLVerifyClient none
SSLProxyEngine off
<IfModule mime.c>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfModule>
# other SSL stuff
Alias /lc "C:/project"
<Directory "C:/project">
Options Indexes FollowSymLinks
</Directory>
JkMount /project/servlet/* ajp13
JkMount /project/*.jsp ajp13
<Location "/project/WEB-INF/">
AllowOverride None
Deny from all
</Location>
</VirtualHost>
</IfModule>
and in rewrite.conf
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{REQUEST_URI} CustomerControl.do [OR]
RewriteCond %{REQUEST_URI} success.php
RewriteRule (.*) [
%{HTTP_HOST}%{REQUEST_URI}...] [R=301,L]
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{REQUEST_URI} !^CustomerControl.do
RewriteRule (.*) [
%{HTTP_HOST}%{REQUEST_URI}...] [R=301,L]
The thing is http to https working fine...but https to http is not at working.
I am not sure whether i have added all the necessary config in httpd.conf
is anything to be added?
is anybody is there to help me?
Do somebody have full sample httpd.conf or rewrite.conf?