Server Name Indication (SNI) on Java

前端 未结 5 906
挽巷
挽巷 2020-12-14 11:37

Can anyone help me get started on carrying out HTTP connections with server name indication in Java?

I\'m trying to request content from a site I\'m adminstering. I\

5条回答
  •  萌比男神i
    2020-12-14 12:20

    What worked for me was configuring the ServerName correctly in the Apache configuration:

    /etc/apache2/sites-avaible/default

    
      ServerName foo.domain.com
      ...
    
    

    Like said in https://stackoverflow.com/a/8058839/2088282.

提交回复
热议问题