標籤:protocol cal pac access 技術 document img 技術分享 default
一:開啟httpd.conf檔案,移除注釋的行:
Include conf/extra/httpd-ahssl.conf
LoadModule ssl_module modules/mod_ssl.so
ServerName localhost:80
二:放置SSl認證
選擇Apache
劃掉的是網域名稱,將其crt和key放入和httpd.conf同級目錄下的ssl檔案夾中,並且改為server.crt和server.key
二:開啟httpd-ahssl.conf(在httpd.conf同級目錄下的extra檔案夾中),修改如下:
<VirtualHost _default_:443>
SSLEngine on
ServerName localhost:443 #主要修改一下這裡
SSLCertificateFile "${SRVROOT}/conf/ssl/server.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key"
DocumentRoot "C:/AppServ/www"
# DocumentRoot access handled globally in httpd.conf
CustomLog "${SRVROOT}/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<Directory "C:/AppServ/www">
Options Indexes Includes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</virtualhost>
重啟apache
Appserv 配置ssl認證