|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
You're speaking plain HTTP to an SSL-enabled server port. - HELP PLEASE !
Hi,
The web portal for our help desk software uses Apache2. I was asked to get SSL setup on Apache2. I have never touched Apache or anything web related, but I was the only available person. With some assistance, I configured httpd.conf, ssl.conf, copied mod_ssl.so and 2 .dlls' and appeared to have it working. Yesterday we got our real cert file and I pasted it into the .csr file and changed ssl.conf to point to this file as well as the .key file. Someone also showed me how to make a redirect so if someone enters http it changes to https. Everything is working initially. When you enter the URL, you get to URL and the lock icon shows up on the status bar. I click on the lock and it shows the valid SSL cert and all appears perfect. When I login to the portal, I get: 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. I did a google search on this message and found a bunch of matches. I understand what this means, but since I have zero apache/ssl/web experience, I cannot figure out why it is working correctly till I try to login, then something is directing the connection to an http url. Since I am totally lost at this point, I will throw out some config lines. Here are some lines from httpd.conf: # PRGNREDIRECT # RewriteEngine on RewriteRule ^/$ URL{SERVER_NAME}:%{SERVER_PORT}/oaa/login.jsp [R=permanent] RewriteRule ^/oaa/$ URL{SERVER_NAME}:%{SERVER_PORT}/oaa/login.jsp [R=permanent] <IfModule mod_ssl.c> Include conf/ssl.conf </IfModule> Here is from ssl.conf: Listen 443 <VirtualHost *:80> Redirect / URL </VirtualHost> # PRGNREDIRECT # RewriteEngine on RewriteRule ^/$ URL{SERVER_NAME}:%{SERVER_PORT}/oaa/login.jsp [R=permanent] RewriteRule ^/oaa/$ URL{SERVER_NAME}:%{SERVER_PORT}/oaa/login.jsp [R=permanent] </VirtualHost> NOTE: I commented out the rewriteengine lines from httpd.conf (not ssl.conf) as a test and that did not help. (restarted apache always after all changes). QUESTION: Can anyone suggest anything I can do to attempt to solve why I get re-directed to an http url when I attempt to login to the portal ?? I realize I am not supplying a lot of information.. I do not know what else to provide. Please assume I know zero if you can make a suggestion. THANK YOU !!!!!!!!!!!! -Brian |
|
#2
|
|||
|
|||
|
What's the method used on this "redirect"?
|
|
#3
|
|||
|
|||
|
Quote:
Sorry, I do not know. Can you please tell me how I to get that answer for you ? Thanks ! |
|
#4
|
|||
|
|||
|
Remove the ReWrite stuff.
You should have two VirtualHosts. <VirtualHost *:80> ServerName site.domain.tld Redirect / https://site.domain.tld/ </VirtualHost> <VirtualHost *:443> SSLEngine On ServerName site.domain.tld ... </VirtualHost> I have a feeling the seconf set of ReWriteRule directives in the ssl.conf file are confusing the browser. Try it without them |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > You're speaking plain HTTP to an SSL-enabled server port. - HELP PLEASE ! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|