Home  >  Article  >  Backend Development  >  apache下静态化后URL设置SSL访问链接

apache下静态化后URL设置SSL访问链接

WBOY
WBOYOriginal
2016-06-06 20:43:12905browse

LAMP环境下SSL协议访问链接地址:静态化后URL如何设置使得能够通过SSL访问?
https://www.example.com/index.php?cPath=1109 (访问正常)静态化后
https://www.example.com/c/categories_name_1109(404错误)
(需要设置两种方式都可访问,默认是http协议访问)

参考:
Request URL:https://www.lightinthebox.com/c/watch-cell-phones_1298
Request Method:GET
Status Code:302 Moved Temporarily

回复内容:

LAMP环境下SSL协议访问链接地址:静态化后URL如何设置使得能够通过SSL访问?
https://www.example.com/index.php?cPath=1109 (访问正常)静态化后
https://www.example.com/c/categories_name_1109(404错误)
(需要设置两种方式都可访问,默认是http协议访问)

参考:
Request URL:https://www.lightinthebox.com/c/watch-cell-phones_1298
Request Method:GET
Status Code:302 Moved Temporarily

关于Apache设置SSL协议问题:
在默认Apache环境下,需要在配置文件httpd-ssl.conf文件设置证书绝对路径地址,以及正确设置ssl协议的443端口下的虚拟主机配置,额外加上访问目录控制权限

谢邀。

我也不会。

原则上讲协议跟相应无关,静态化跟协议是不同的两层。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn