菜单

typo3 – SSL

2010年07月2日 - typo3
下载插件: https_enforcer
http://typo3.org/extensions/repository/view/https_enforcer/current/
(普通版)
TS一定要配置正确:
[globalVar = TSFE:page|tx_httpsenforcer_force_secure = 0]
config.baseURL = http://{$config.domain}/
[else]
config.baseURL = https://{$config.domain}/
[global]
或者:
# Set baseURL setting for http or https
config.baseURL = http://{$config.domain}/
[globalString = IENV:TYPO3_SITE_URL=https://{$config.domain}/]
config.baseURL = https://{$config.domain}/
[global]

(代理版)

Example

Constants: https_enforcer.unsecure_typo3_root = www.mydomain.net/cms https_enforcer.secure_typo3_root = ssl.myisp.com/mydomain/cms https_enforcer.disable_httpsenforcer_for_be_user = 1 Setup: [globalVar = TSFE:page|tx_httpsenforcer_force_secure = 0] config.baseURL = http://www.mydomein.net/cms/ [else] config.baseURL = https://ssl.myisp.com/mydomain/cms/ [global]
page = PAGE
page.typeNum = 0

page.5 < plugin.tx_httpsenforcer_pi1

page.10 < temp.mainTemplate

This example configures HTTPS Enforcer for use with the RealURL extension (added or changed parts are in bold red).

The URL of your typo3-root is set to http://www.mydomain.net/cms/, while SSL-encrypted connections are made through https://ssl.myisp.com/mydomain/cms/.
Users logged into the back-end can browse the site without enforcement of encryption status.
http://typo3.org/documentation/document-library/extension-manuals/https_enforcer/1.0.12/view/1/4/

发表评论

电子邮件地址不会被公开。 必填项已用*标注