Asked by duncanb7
at 2024-05-14 05:30:51
Point:500 Replies:15 POST_ID:828555USER_ID:11059
Topic:
PHP Scripting Language;Linux;Apache Web Server
After install xampp on my window-xp, I am able to surf http:localhost:80 in my browser
But when I am setting up and using openSSL and setup up self-signed SSL
certification to my localhost site , surfing links such as http://localhost and https://localhost
both are not working and browsers give me the disconnection error message .
Setting up for enabling openssl, I modified some code in http.conf as follows
-taking out "#" in #LoadModule ssl_module modules/mod_ssl.so
and Include "conf/extra/httpd-ssl.conf"
-and take out ";" in ;extension=php_openssl.dl in php.ini
Setting SSL self-sign Certfication, I follow this link at
-http://www.opencodez.com/apache/ssl-certificate-and-install-in-xampp.htm
-and get the crt and key file and put it in httpd-ssl.conf
SSLCertificateFile "c:/xampp/php/extras/openssl/server.crt"
SSLCertificateKeyFile "c:/xampp/php/extras/openssl/server.key"
-and set <VirualHOST> as follows
<VirtualHost localhost:443>
# General setup for the virtual host
DocumentRoot "C:/xampp/htdocs"
ServerName localhost:443
ServerAdmin webmaster@localhost
ErrorLog "logs/error.log"
<IfModule log_config_module>
CustomLog "logs/access.log" combined
</IfModule>
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
..............
</</VirtualHost>
-stop xampp server and restart it for files update
But all is not working no matter I try http://localhost:80 or https:localhost:443 both are NOT working for surfing in browsers,Why?
Please advise where the setup is doing wrong ?
And I also attach those three modified files for your checking, httpd-ssl-conf, httpd-conf, php.ini
It tooks my time for that more than 2 days , please help on it
Please advise, thanks
Duncan
But when I am setting up and using openSSL and setup up self-signed SSL
certification to my localhost site , surfing links such as http://localhost and https://localhost
both are not working and browsers give me the disconnection error message .
Setting up for enabling openssl, I modified some code in http.conf as follows
-taking out "#" in #LoadModule ssl_module modules/mod_ssl.so
and Include "conf/extra/httpd-ssl.conf"
-and take out ";" in ;extension=php_openssl.dl in php.ini
Setting SSL self-sign Certfication, I follow this link at
-http://www.opencodez.com/apache/ssl-certificate-and-install-in-xampp.htm
-and get the crt and key file and put it in httpd-ssl.conf
SSLCertificateFile "c:/xampp/php/extras/openssl/server.crt"
SSLCertificateKeyFile "c:/xampp/php/extras/openssl/server.key"
-and set <VirualHOST> as follows
<VirtualHost localhost:443>
# General setup for the virtual host
DocumentRoot "C:/xampp/htdocs"
ServerName localhost:443
ServerAdmin webmaster@localhost
ErrorLog "logs/error.log"
<IfModule log_config_module>
CustomLog "logs/access.log" combined
</IfModule>
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
..............
</</VirtualHost>
-stop xampp server and restart it for files update
But all is not working no matter I try http://localhost:80 or https:localhost:443 both are NOT working for surfing in browsers,Why?
Please advise where the setup is doing wrong ?
And I also attach those three modified files for your checking, httpd-ssl-conf, httpd-conf, php.ini
It tooks my time for that more than 2 days , please help on it
Please advise, thanks
Duncan
Attachment:php.inihttpd-ssl-conf.txthttpd-conf.txt