Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: redirect ssl http to https issue in apache |
|
Author |
|
wasistod
Joined: 25 Aug 2015 Posts: 1 Location: usa, jax
|
Posted: Tue 25 Aug '15 21:29 Post subject: redirect ssl http to https issue in apache |
|
|
i am a newbie with apache. need some advise regarding redirecting http to https. It looks like everything in the ssl.conf is copasetic, once i logged on to ssl environment, every links i clicked seem to want to redirect back to http, and get the error "Bad Request - Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please." below are the codes in the ssl.conf. any advise what might be causing the issues?
NOTE: 10.0.0.24:8080 is the port that planner now runs on in test environment. This is something that was changed recently, but since it is just a PROXY, not sure how it might cause the issue with just this area of the site? But open to suggestions. Thank you all in advance.
Code: |
Listen 8001
Listen 8004
<VirtualHost *:8001>
SSLEngine on
ServerName test.mydomainintereactive.com:8001
SSLCertificateFile "/etc/httpd/conf/certs/cert.pem"
SSLCertificateKeyFile "/etc/httpd/conf/certs/test.key"
SSLCertificateChainFile "/etc/httpd/conf/certs/gd_bundle-g2-g1.crt"
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite etc...
#
# Security and Server protection (GLG - 2015-08)
#
TraceEnable Off
ServerSignature Off
FileETag None
CustomLog /var/log/httpd/test-access.log combined
ErrorLog /var/log/httpd/test-error.log
# ErrorDocument 400 https://test.mydomainintereactive.com:8001
ProxyPreserveHost On
ProxyPass / http://10.0.0.24:8080/
ProxyPassReverse / http://10.0.0.24:8080/
</virtualhost>
<VirtualHost *:8004>
SSLEngine on
ServerName fun.mydomainintereactive.com:8004
SSLCertificateFile "/etc/httpd/conf/certs/FUN2010Cert.pem"
SSLCertificateKeyFile "/etc/httpd/conf/certs/FUN2010Key2.pem"
SSLCertificateChainFile "/etc/httpd/conf/certs/gd_bundle.crt"
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite etc..
SSLHonorCipherOrder on
#
# Security and Server protection (GLG - 2015-08)
#
TraceEnable Off
ServerSignature Off
FileETag None
CustomLog /var/log/httpd/fun77-access.log combined
ErrorLog /var/log/httpd/fun77-error.log
# ProxyPreserveHost On
ProxyPass / http://10.0.0.22:8080/
ProxyPassReverse / http://10.0.0.22:8080/
</virtualhost>
|
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 15 Sep '15 17:23 Post subject: |
|
|
How do the URLs look like in the html? IS there http:// with the domain name or relative links? |
|
Back to top |
|
|
|
|
|
|