ccerda0520/alternative-http-header 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ccerda0520/alternative-http-header

最新稳定版本:1.0.0

Composer 安装命令:

composer require ccerda0520/alternative-http-header

包简介

A Magento 2 module that uses a custom http remote address header used by Cloudflare or other CDN/proxies.

README 文档

README

A Magento 2 module that uses a custom http remote address header used by Cloudflare or other CDN/proxies.

Description

This Magento 2 module adds the HTTP_CF_CONNECTING_IP and HTTP_X_FORWARDED_FOR headers to be used within the application. By default Cloud Distribution Network (CDN) like Cloudflare or other proxies intercept the original server request and send a new request to the actual site server. By doing this, the server receives the CDN's remote address in the $_SERVER[REMOTE_ADDR] value which is not what we want. Functionality that relies on IP detection to do stuff doesnt function properly because of this. This extension lets magento know to search for values in $_SERVER[HTTP_CF_CONNECTING_IP] or SERVER[HTTP_X_FORWARDED_FOR] and use these values as the remote address if they exist.

Installation Instructions

Install using composer

composer require ccerda0520/alternative-http-header
php bin/magento module:enable CCerda_AlternativeHttpHeader
php bin/magento setup:upgrade

统计信息

  • 总下载量: 55
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2020-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固