阅读:3770回复:6
ssl 功能问题。
开启ssl。配置都正确。
访问网站 会成 https://www.XXX.com:80/ 不知道怎么解决 server { listen *:80; listen *:443 ssl; server_name www.XX.com XX.com ; ssl_certificate D:/UPUPW_ANK_W64/SSL/1_www.XX.com_bundle.crt; ssl_certificate_key D:/UPUPW_ANK_W64/SSL/2_www.XXXX.com.key; include ssl.conf; error_page 497 https://$host$uri?$args; root "D:/UPUPW_ANK_W64/WebRoot/Vhosts/XXX.com"; index index.html index.htm index.php default.php app.php u.php; autoindex off; sub_filter 'http://$host:443' '$scheme://$host'; sub_filter 'http:\/\/$host:443' '$scheme://$host'; sub_filter 'http://$host:8011' '$scheme://$host'; sub_filter 'http://$host:8033' '$scheme://$host'; sub_filter 'http://$host:80' '$scheme://$host'; sub_filter_once off; sub_filter_types *; location ~ /\.(htaccess|uini)$ { deny all; } location ~* .*\/(attachment|attachments|uploadfiles|avatar)\/.*\.(php|phps|php5|php7|fcgi|jsp|jspx|asp|aspx|asa|asax|ascx|ashx|asmx|axd)$ { deny all; } location ~ \.php$ { proxy_pass http://bakend_php; include uproxy.conf; } try_files $uri @proxy; location @proxy { internal; proxy_pass http://bakend_php; include uproxy.conf; } } |
|
沙发#
发布于:2017-08-06 06:52
帖内置顶 – 动力火锅 – 2017-08-07 00:10
是点击链接出现的还是直接输入https://网址出现的?
|
|
板凳#
发布于:2017-08-06 06:52
是点击链接出现的还是直接输入https://网址出现的?
|
|
地板#
发布于:2017-08-06 11:57
|
|
4楼#
发布于:2017-08-07 00:11
这个属于网站程序内部的识别性问题,只能用替换规则来解决问题了,在sub_filter 'http://$host:80' '$scheme://$host';下方加入sub_filter 'https://$host:80' '$scheme://$host';
|
|
5楼#
发布于:2017-08-08 13:09
|
|
6楼#
发布于:2017-08-08 13:09
|
|
7楼#
发布于:2017-08-08 13:24
|
|