APACHE https不起作用,但http工作?

时间:2012-03-01 15:48:40

标签: apache tomcat ssl http-status-code-404

SPEC Apache 2.x tomcat 6.0 JDK1.6 win os 7

http中的以下配置的负载平衡按照worker2.properties文件

工作
#In httpd.conf

#Karthik

LoadModule  jk_module   modules/mod_jk.so
Include conf/httpd-ssl.conf
LoadModule  jk_module     modules/mod_jk.so
<IfModule mod_jk.c>
ErrorLog "logs/anyFile-error.log"
CustomLog "logs/anyFile-access.log" common
JkMountCopy On
JkMount /* worker1
JkWorkersFile conf/worker2.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

Alias /WFSSVN  "http://192.168.6.62:8080/ABCD/"
<Directory "E:/JAVA/APACHE22SSL/htdocs" >
Options Indexes FollowSymLinks
Order Allow,Deny
Allow from All
</Directory>
</IfModule>

但部署了SSL证书,并在httpd-ssl.conf中应用了配置

#In httpd-ssl.conf

    LoadModule  ssl_module  modules/mod_ssl.so
    <IfModule mod_jk.c>

    ErrorLog "logs/anyFile-error.log"
    CustomLog "logs/anyFile-access.log" common

    SSLEngine on
    ServerName ai-itl-107.agilis.com:443
    SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile "E:/JAVA/APACHE22SSL/conf/AI-ITL-107.crt"
    SSLCertificateKeyFile "E:/JAVA/APACHE22SSL/conf/AI-ITL-107.key"

    JkWorkersFile conf/worker2.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel error
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    JkRequestLogFormat "%w %V %T"
    JkMountCopy On
    JkMount /* worker1

    <Directory "E:/JAVA/APACHE22SSL/htdocs" >
    Options Indexes FollowSymLinks
    Order Allow,Deny
    Allow from All
    </Directory>
    </IfModule>

注意: - httpd.conf有EOF args“Include conf / httpd-ssl.conf”

问候 KARTHIK 返回404错误为什么???

2 个答案:

答案 0 :(得分:1)

使用

检查您的开放端口
nmap localhost

至少需要打开80和443

答案 1 :(得分:0)

我知道我过去曾遇到过缺少Listen *:443指令的问题。确保在httpd.conf文件中的某个位置找到以下行(或类似的东西):

Listen *:80
Listen *:443

在某些系统上,这些指令可能存在于另一个文件中。例如,在MAC OSX上,它们位于sites / virtual-host-global.conf。

希望这有帮助。