Author |
|
rskb4u
Joined: 14 Apr 2014 Posts: 25 Location: India
|
Posted: Thu 31 Jul '14 15:33 Post subject: SSL Error : HostName Provided via SNI & HTTP are differe |
|
|
Hi,
We are getting the below message produced in error.log when accessing from mobile application. Even I have updated apache from 2.4.9 to 2.4.10 also. Still facing the same error like below.
[Thu Jul 31 15:27:10.934564 2014] [ssl:error] [pid 12000:tid 6520] AH02032: Hostname teampark3.sogeti.com. provided via SNI and hostname teampark3.sogeti.com provided via HTTP are different
How to resolve the issue?
Thank you,
Shiva Rudra |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Thu 31 Jul '14 17:47 Post subject: |
|
|
Did you notice the '.' behind the first teampark3.sogeti.com? Is there perhaps a servername of serveralias teampark3.sogeti.com. in your config files? |
|
Back to top |
|
rskb4u
Joined: 14 Apr 2014 Posts: 25 Location: India
|
Posted: Fri 01 Aug '14 7:32 Post subject: |
|
|
HI Jan-E,
Yes,
ServerName of ServerAlias in my config file. This is my VirtualHost Block.
<VirtualHost *:80>
ServerName teampark3.sogeti.com
ServerAlias teampark3.sogeti.com
ProxyRequests Off
ProxyErrorOverride Off
ProxyPass / http://teampark3.sogeti.com/
ProxyPassReverse / http://teampark3.sogeti.com/
<Proxy *>
Require all granted
</Proxy>
</VirtualHost>
How to resolve the issue?
Many Thanks,
Shiva Rudra |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Fri 01 Aug '14 12:08 Post subject: |
|
|
Looks OK, so I do not know. The ServerAlias line seems unnecessary, so maybe remove that one. |
|
Back to top |
|
rskb4u
Joined: 14 Apr 2014 Posts: 25 Location: India
|
Posted: Fri 01 Aug '14 12:24 Post subject: |
|
|
Thanks Jan-E,
For quick reply.
Then why I am getting the below error in my error.log file.
[Thu Jul 31 15:27:10.934564 2014] [ssl:error] [pid 12000:tid 6520] AH02032: Hostname teampark3.sogeti.com. provided via SNI and hostname teampark3.sogeti.com provided via HTTP are different.
and how to resolve this issue.
Best Regards,
Shiva Rudra |
|
Back to top |
|
AdrianK_IT
Joined: 30 May 2013 Posts: 34 Location: Scottish Borders, UK
|
Posted: Fri 01 Aug '14 12:39 Post subject: |
|
|
Do you have separate virtual host block for the SSL connection?
<VirtualHost *:443>
etc |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 01 Aug '14 14:23 Post subject: |
|
|
Do you set Strict-Transport-Security ? |
|
Back to top |
|
rskb4u
Joined: 14 Apr 2014 Posts: 25 Location: India
|
Posted: Fri 01 Aug '14 15:57 Post subject: |
|
|
Hi James & AdrianK_IT,
NO, I don't set Strict-Transport-Security?
How to configure it ?
I don't has separate host block for SSL Connection.
My httpd.conf file is here...
Please read & suggest any changes that I have to do & Where to do?
Many Thanks,
Shiva Rudra
mod note: Do not post your config here! See the forum rules. Since I'm nice I posted it at http://pastebin.com/h2LRuCFg |
|
Back to top |
|
AdrianK_IT
Joined: 30 May 2013 Posts: 34 Location: Scottish Borders, UK
|
Posted: Fri 01 Aug '14 17:08 Post subject: |
|
|
Well, totally baffled (and shocked). I'm no expert, but unless the info appears in your other .conf files (proxy-html.conf, httpd-ssl.conf, dsame.conf), you appear to be neither running an SSL-enabled site (no listen on port 443) nor a virtual host, just a 'real' one (so why include details of your eg ServerName inside a VirtualHost block?).
You are using a default httpd.conf without really tuning it to your needs. Is this a production server? Not advised! You haven't even altered the ServerAdmin entry to something meaningful! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
rskb4u
Joined: 14 Apr 2014 Posts: 25 Location: India
|
Posted: Mon 04 Aug '14 9:41 Post subject: |
|
|
Hi James,
we have OpenAM Agent for single Sign-on purpose, dsame.conf file will be used for that.
Please can any body help to resolve the issue?
[Thu Jul 31 15:27:10.934564 2014] [ssl:error] [pid 12000:tid 6520] AH02032: Hostname teampark3.sogeti.com. provided via SNI and hostname teampark3.sogeti.com provided via HTTP are different
No, this is not production server, development environment only, but we have same configuration in prod also.
Many Thanks,
Shiva Rudra |
|
Back to top |
|