hi, i am doing the configure to enable SSL in Apache 2.2.6 . But i got the problem with the SSLEngine On . If i don't put it inside the <IFDefine SSL> , i can not start httpd. But If i put inside, my httpd start , but the ssl does not work. I only can access the normal : http://localhost:443 , but not https://localhost:443. Here is my Virtual Host configure:
<IfDefine SSL>
NameVirtualHost 192.168.1.12:443
<VirtualHost *.1443>
#<VirtualHost abc.com:1443>
ServerAdmin [email protected]
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
ServerName abc.com
ErrorLog logs/abc.com-error.log
CustomLog logs/abc.com-access.log common
SSLEngine on
SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl.crt/server.crt"
SSLCertificateKeyFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl.key/server.key"
</VirtualHost>
</IfDefine>
Anyone got experience in this matter, I got stuck at here for a few weeks.
Thanks,
Harry
<IfDefine SSL>
NameVirtualHost 192.168.1.12:443
<VirtualHost *.1443>
#<VirtualHost abc.com:1443>
ServerAdmin [email protected]
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
ServerName abc.com
ErrorLog logs/abc.com-error.log
CustomLog logs/abc.com-access.log common
SSLEngine on
SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl.crt/server.crt"
SSLCertificateKeyFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl.key/server.key"
</VirtualHost>
</IfDefine>
Anyone got experience in this matter, I got stuck at here for a few weeks.
Thanks,
Harry