打印

was+ihs+ssl 出现 500 Internal Server Error

was+ihs+ssl 出现 500 Internal Server Error

我用was+ihs+ssl 配置的环境,访问直接was上面程序可以访问,访问https://localhost:9443/test/index.jsp 也可以,但是https://localhost/test/index.jsp 就会报500 Internal Server Error 有哪位朋友遇到过,请教下!


下面是plugin-cfg.xml文件的内容:
<?xml version="1.0" encoding="GB2312"?><!--HTTP server plugin config file for the webserver hp-HPNode01Cell.hp-HPNode01.webserver1 generated on 2012.05.16 at 10:54:30 AM CST-->
<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="WebserverPort" ChunkedResponse="false" FIPSEnable="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" RefreshInterval="60" ResponseChunkSize="64" VHostMatchingCompat="false">
   <Log LogLevel="Error" Name="f:\Program Files\IBM\HTTPServer\Plugins\logs\webserver1\http_plugin.log"/>
   <roperty Name="ESIEnable" Value="true"/>
   <roperty Name="ESIMaxCacheSize" Value="1024"/>
   <roperty Name="ESIInvalidationMonitor" Value="false"/>
   <roperty Name="ESIEnableToPassCookies" Value="false"/>
   <roperty Name="luginInstallRoot" Value="f:\Program Files\IBM\HTTPServer\Plugins\"/>
   <VirtualHostGroup Name="default_host">
      <VirtualHost Name="*:9080"/>
      <VirtualHost Name="*:80"/>
      <VirtualHost Name="*:9443"/>
      <VirtualHost Name="*:5060"/>
      <VirtualHost Name="*:5061"/>
      <VirtualHost Name="*:443"/>
   </VirtualHostGroup>
   <ServerCluster CloneSeparatorChange="false" GetDWLMTable="false" IgnoreAffinityRequests="true" LoadBalance="Round Robin" Name="server1_hp-HPNode01_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="hp-HPNode01_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="hp-HP" Port="9080" Protocol="http"/>
         <Transport Hostname="hp-HP" Port="9443" Protocol="https">
            <roperty Name="keyring" Value="f:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-key.kdb"/>
            <roperty Name="stashfile" Value="f:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-key.sth"/>
         </Transport>
      </Server>
   </ServerCluster>
   <UriGroup Name="default_host_server1_hp-HPNode01_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ivt/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/test/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/snoop/*"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hello"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/hitcount"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsp"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsv"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="*.jsw"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/j_security_check"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm_security_logout"/>
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/servlet/*"/>
   </UriGroup>
   <Route ServerCluster="server1_hp-HPNode01_Cluster" UriGroup="default_host_server1_hp-HPNode01_Cluster_URIs" VirtualHostGroup="default_host"/>
   <RequestMetrics armEnabled="false" loggingEnabled="false" rmEnabled="false" traceLevel="HOPS">
      <filters enable="false" type="URI">
         <filterValues enable="false" value="/snoop"/>
         <filterValues enable="false" value="/hitcount"/>
      </filters>
      <filters enable="false" type="SOURCE_IP">
         <filterValues enable="false" value="255.255.255.255"/>
         <filterValues enable="false" value="254.254.254.254"/>
      </filters>
      <filters enable="false" type="JMS">
         <filterValues enable="false" value="destination=aaa"/>
      </filters>
      <filters enable="false" type="WEB_SERVICES">
         <filterValues enable="false" value="wsdlPort=aaap=bbb:nameSpace=ccc"/>
      </filters>
   </RequestMetrics>
</Config>

[ 本帖最后由 clnsl 于 2012-5-16 14:05 编辑 ]

TOP

******过期了,详细请见
http://www.java2class.net/bbs/viewthread.php?tid=224

将plugin-cfg.xml文件发出来看看
简单就是美!
我的Java:http://www.Java2Class.net

TOP

1、f:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-key.kdb放上来

2、f:\Program Files\IBM\HTTPServer\Plugins\logs\webserver1\http_plugin.log

3、IHS下的logs/error_log放上来
简单就是美!
我的Java:http://www.Java2Class.net

TOP

文件:f:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-key.kdb


文件:f:\Program Files\IBM\HTTPServer\Plugins\logs\webserver1\http_plugin.log

[Tue May 15 14:09:31 2012] 00001d34 00000aec - ERROR: lib_security: logSSLError: str_security (gsk error 107):  GSK_KEYFILE_CERT_EXPIRED
[Tue May 15 14:09:31 2012] 00001d34 00000aec - ERROR: lib_security: initializeSecurity: Failed to initialize GSK environment
[Tue May 15 14:09:31 2012] 00001d34 00000aec - ERROR: ws_transport: transportInitializeSecurity: Failed to initialize security
[Tue May 15 14:09:31 2012] 00001d34 00000aec - ERROR: ws_server: serverAddTransport: Failed to initialize security
[Tue May 15 14:09:31 2012] 00001d34 00000aec - ERROR: ws_server: serverAddTransport: HTTPS Transport is skipped
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: Plugins loaded.
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: --------------------System Information-----------------------
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: Bld version: 7.0.0
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: Bld date: Aug 19 2008, 23:34:55
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: Webserver: IBM_HTTP_Server
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: Hostname = HP-HP
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: OS version 6.1, build 7600, ''
[Tue May 15 14:09:31 2012] 00001d34 00000aec - PLUGIN: --------------------------------------------------------------
[Tue May 15 14:09:33 2012] 000005d8 00000178 - ERROR: lib_security: logSSLError: str_security (gsk error 107):  GSK_KEYFILE_CERT_EXPIRED
[Tue May 15 14:09:33 2012] 000005d8 00000178 - ERROR: lib_security: initializeSecurity: Failed to initialize GSK environment
[Tue May 15 14:09:33 2012] 000005d8 00000178 - ERROR: ws_transport: transportInitializeSecurity: Failed to initialize security
[Tue May 15 14:09:33 2012] 000005d8 00000178 - ERROR: ws_server: serverAddTransport: Failed to initialize security
[Tue May 15 14:09:33 2012] 000005d8 00000178 - ERROR: ws_server: serverAddTransport: HTTPS Transport is skipped
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: Plugins loaded.
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: --------------------System Information-----------------------
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: Bld version: 7.0.0
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: Bld date: Aug 19 2008, 23:34:55
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: Webserver: IBM_HTTP_Server
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: Hostname = HP-HP
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: OS version 6.1, build 7600, ''
[Tue May 15 14:09:33 2012] 000005d8 00000178 - PLUGIN: --------------------------------------------------------------


文件:logs/error_log
[Tue May 15 14:09:31 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: WebSphere Plugins loaded.
[Tue May 15 14:09:31 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: --------------------Plugin Information-----------------------
[Tue May 15 14:09:31 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: Bld version: 7.0.0
[Tue May 15 14:09:31 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: Bld date: Aug 19 2008, 23:35:33
[Tue May 15 14:09:31 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: Webserver: IBM_HTTP_Server
[Tue May 15 14:09:31 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: --------------------------------------------------------------
[Tue May 15 14:09:31 2012] [notice] Using config file F:/Program Files/IBM/HTTPServer/conf/httpd.conf
[Tue May 15 14:09:31 2012] [notice] IBM_HTTP_Server/7.0.0.0 (Win32) configured -- resuming normal operations
[Tue May 15 14:09:31 2012] [notice] Server built: Aug  6 2008 17:12:34
[Tue May 15 14:09:31 2012] [notice] Parent: Created child process 1496
[Tue May 15 14:09:33 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: WebSphere Plugins loaded.
[Tue May 15 14:09:33 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: --------------------Plugin Information-----------------------
[Tue May 15 14:09:33 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: Bld version: 7.0.0
[Tue May 15 14:09:33 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: Bld date: Aug 19 2008, 23:35:33
[Tue May 15 14:09:33 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: Webserver: IBM_HTTP_Server
[Tue May 15 14:09:33 2012] [notice] PLUGIN: mod_was_ap22_http: apache_log_header: --------------------------------------------------------------
[Tue May 15 14:09:33 2012] [notice] Using config file F:/Program Files/IBM/HTTPServer/conf/httpd.conf
[Tue May 15 14:09:33 2012] [notice] Child 1496: Child process is running
[Tue May 15 14:09:33 2012] [notice] Child 1496: Acquired the start mutex.
[Tue May 15 14:09:33 2012] [notice] Child 1496: Starting 600 worker threads.
[Tue May 15 14:09:33 2012] [notice] Child 1496: Starting thread to listen on port 80.
附件: 您所在的用户组无法下载或查看附件

TOP

1、plugin-key.kdb的密码与******均未过期

2、F:/Program Files/IBM/HTTPServer/conf/httpd.conf
中最后几行的WebSpherePluginConfig所指向的plugin-cfg.xml文件全路径是你原贴发的那个文件吗?

3、http-plug.log显示的却是******过期。检查一下文件的引用先。

[ 本帖最后由 YuLimin 于 2012-5-16 14:28 编辑 ]
简单就是美!
我的Java:http://www.Java2Class.net

TOP

原帖里面的内容是这个文件里面的:f:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-cfg.xml
和 F:/Program Files/IBM/HTTPServer/conf/httpd.conf
里面引用的文件是同一个 下面是httpd.conf  文件最后的内容

LoadModule was_ap22_module "f:\Program Files\IBM\HTTPServer\Plugins\bin\mod_was_ap22_http.dll"
WebSpherePluginConfig "f:\Program Files\IBM\HTTPServer\Plugins\config\webserver1\plugin-cfg.xml"
<VirtualHost *:443>
   SSLEnable
   SSLServerCert ihskey
</VirtualHost>
KeyFile "f:/Program Files/IBM/HTTPServer/conf/ihskey.kdb"

TOP

1、在WAS控***台上将客户机认证去掉它,不需要加这个,

2、如果要强加这个,则将WAS的******导入到IHS的******中去。

3、建议不用要7.0.0.0的初始版本,全部升级到7.0.0.21或以上版本。IHS、PLG、JDK、WAS
简单就是美!
我的Java:http://www.Java2Class.net

TOP