您好,登錄后才能下訂單哦!
我的是yum安裝的lamp平臺,
apache 我已經配置好了 https訪問。
可以參照:架設CA服務器實現https通信,web服務器使用CA自簽證書與https通信
http://990487026.blog.51cto.com/10133282/1686127
安裝mod_ssl
[root@nb0001 html]# yum instyall mod_ssl openssl
修改配置文件
[root@nb0001 html]# vim /etc/httpd/conf/httpd.conf <Directory "/var/www/html"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </Directory>
重啟apache
[root@nb0001 html]# [root@nb0001 html]# [root@nb0001 html]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。