solr - Redirect http to https bitnami apache -


i want redirect contents of site http https. tried adding following in bitnami.config file didn't worked.

 rewriteengine on  rewritecond %{https} !=on  rewriterule ^/(.*) https://%{server_name}/$1 [r,l] 

below content of bitnami.config file

# default virtual host configuration.  <ifversion < 2.3 > namevirtualhost *:8080 namevirtualhost *:443 </ifversion>  <virtualhost _default_:8080> documentroot "c:/bitnami/solr-5.3.0-0/apache2/htdocs"  rewriteengine on rewritecond %{https} !=on rewriterule ^/(.*) https://%{server_name}/$1 [r,l]  <directory "c:/bitnami/solr-5.3.0-0/apache2/htdocs"> options indexes followsymlinks allowoverride <ifversion < 2.3 >   order allow,deny                             allow </ifversion> <ifversion >= 2.3 >   require granted </ifversion> </directory>  # error documents errordocument 503 /503.html  # bitnami applications installed prefix url (default) include "c:/bitnami/solr-5.3.0-0/apache2/conf/bitnami/bitnami-apps-    prefix.conf"  </virtualhost>  # default ssl virtual host configuration.  <ifmodule !ssl_module> loadmodule ssl_module modules/mod_ssl.so </ifmodule>  listen 443 sslprotocol -sslv2 -sslv3 sslhonorcipherorder on sslciphersuite "eecdh+ecdsa+aesgcm eecdh+arsa+aesgcm eecdh+ecdsa+sha384   eecdh+ecdsa+sha256 eecdh+arsa+sha384 eecdh+arsa+sha256 eecdh !anull !enull !low !3des !md5 !exp !psk !srp !dss !edh !rc4" sslpassphrasedialog  builtin sslsessioncache "shmcb:c:/bitnami/solr-5.3.0-0/apache2/logs/ssl_scache(512000)" sslsessioncachetimeout  300  <virtualhost _default_:443>  documentroot "c:/bitnami/solr-5.3.0-0/apache2/htdocs"  sslengine on  sslcertificatefile "c:/bitnami/solr-5.3.0-0/apache2/conf/server.crt"  sslcertificatekeyfile "c:/bitnami/solr-5.3.0-0/apache2/conf/server.key"  <directory "c:/bitnami/solr-5.3.0-0/apache2/htdocs"> options indexes followsymlinks allowoverride <ifversion < 2.3 >   order allow,deny                             allow </ifversion> <ifversion >= 2.3 >   require granted </ifversion> </directory>  # error documents errordocument 503 /503.html  # bitnami applications installed prefix url (default) include "c:/bitnami/solr-5.3.0-0/apache2/conf/bitnami/bitnami-apps- prefix.conf" </virtualhost>  # bitnami applications uses virtual host configuration include "c:/bitnami/solr-5.3.0-0/apache2/conf/bitnami/bitnami-apps-vhosts.conf" 

have placed rule in wrong way?

bitnami developer here.

if want redirect http https have modify file mentioned above (installdir/apache2/conf/bitnami/bitnami.conf).

 rewriteengine on  rewritecond %{https} !=on  rewriterule ^/(.*) https://%{server_name}/$1 [r,l] 

those lines need placed inside default virtual host configuration bitnami.conf file fine.

i installed solr in windows , copied rewrite lines bitnami.conf file @ installdir/apache2/conf/bitnami/bitnami.conf , redirection worked fine after restarting apache. did restarted service? please note apache needs restarted changes take effect.

this guide explains change.

i hope helps.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -