logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: SSL Error : HostName Provided via SNI & HTTP are differe
Author
rskb4u



Joined: 14 Apr 2014
Posts: 25
Location: India

PostPosted: Thu 31 Jul '14 15:33    Post subject: SSL Error : HostName Provided via SNI & HTTP are differe Reply with quote

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

PostPosted: Thu 31 Jul '14 17:47    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 7:32    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 12:08    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 12:24    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 12:39    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 14:23    Post subject: Reply with quote

Do you set Strict-Transport-Security ?
Back to top
rskb4u



Joined: 14 Apr 2014
Posts: 25
Location: India

PostPosted: Fri 01 Aug '14 15:57    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 17:08    Post subject: Reply with quote

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

PostPosted: Fri 01 Aug '14 17:33    Post subject: Reply with quote

I shorted the config (no more comments) http://pastebin.com/NPWpzb0y

What is in the dsame.conf ?
Back to top
rskb4u



Joined: 14 Apr 2014
Posts: 25
Location: India

PostPosted: Mon 04 Aug '14 9:41    Post subject: Reply with quote

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


Reply to topic   Topic: SSL Error : HostName Provided via SNI & HTTP are differe View previous topic :: View next topic
Post new topic   Forum Index -> Apache