2017-04-06 4 views
0

私は2台のSpringServerサーバーを持っています。私はその後、SpringComponentにこれらのサーバをロード春 - ホスト参照はHTTPSサーバー上のHTTPです

HTTP

<bean id="server" class="org.restlet.ext.spring.SpringServer"> 
    <constructor-arg value="http" /> 
    <constructor-arg value="${server.port}" /> 
    <property name="parameters"> 
     <props> 
      <prop key="tracing">false</prop> 
     </props> 
    </property> 
</bean> 

HTTPS

<bean id="httpsServer" class="org.restlet.ext.spring.SpringServer"> 
    <constructor-arg value="https" /> 
    <property name="parameters"> 
    <props> 
     <prop key="sslContextFactory">org.restlet.engine.ssl.DefaultSslContextFactory</prop> 
     <prop key="keyStorePath">C:/store/ks.jks</prop> 
     <prop key="keyStorePassword">pwd</prop> 
     <prop key="keyPassword">pwd</prop> 
     <prop key="keyStoreType">JKS</prop> 
    </props> 
</property> 
</bean> 

<bean id="component" class="org.restlet.ext.spring.SpringComponent"> 
<property name="serversList"> 
    <list> 
     <ref bean="server" /> 
     <ref bean="httpsServer"/> 
    </list> 
</property> 
<property name="clientsList"> 
    <list> 
    <value>file</value> 
    <value>clap</value> 
    <value>http</value> 
    <value>https</value> 
    </list> 
</property> 
<property name="defaultHost" ref="defaultHost" /> 
</bean> 

私の問題は、ホスト参照が私はしても、常にhttp://localhostであるということですhttpsにあります。これにより、クロムにタイムアウトが発生しています。これは、コンテンツセキュリティポリシーのためです。

出力例:

2017年4月6日午後03時27分38秒0:0:0:0:0:0:0:1 - - 443 GET /クライアント/アプリ/パーシャル/ログイン。 html - 200 1850 0 1 http:// localhost Mozilla/5.0(Windows NT 10.0; Win64; x64)AppleWebKit/537.36(GeckoのようなKHTML)Chrome/57.0.2987.133 Safari/537.36 https:// localhost/app/login

答えて

0

Restletのchange logによると、古いバージョンでは、正しく登録されていないHTTPSサーバーが原因です。 Restlet 2.3.9にアップグレードすると問題が解決しました。

関連する問題