当前位置:网站首页>IP error problem of PHP laravel using AWS load balancer
IP error problem of PHP laravel using AWS load balancer
2022-06-29 19:11:00 【Simple tutorial】
PHP Laravel Use aws After load balancer ,IP The address will be displayed as intranet , At this time, just modify the file
api/app/Http/Middleware/TrustProxies.php
The relevant codes in
<?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Fideloper\Proxy\TrustProxies as Middleware; class TrustProxies extends Middleware { /** * The trusted proxies for this application. * * @var array */ protected $proxies = '*'; /** * The headers that should be used to detect proxies. * * @var string */ protected $headers = Request::HEADER_X_FORWARDED_ALL; }
边栏推荐
- PHP outputs all dates between two specified dates
- 1. use stm32cubemx to establish stm32g030c8t6 project
- Flutter 2.0 FocusScope.of(context).requestFocus(FocusNode()) 不生效的问题
- 开发者任务中心上线!千元豪礼送不停!
- 数据基础设施升级窗口下,AI 新引擎的技术方法论
- CAD Assistant - 3D模型格式转换利器
- Dragon canvas animation
- Element waiting mechanism
- [Nanjing University] information sharing of the first and second postgraduate entrance examinations
- Violent solution to the question of guessing the ranking
猜你喜欢

数据基础设施升级窗口下,AI 新引擎的技术方法论

Apache Doris basic usage summary

使用 OpenCV 的基于标记的增强现实

75. nearest common ancestor of binary search tree

DAO 中存在的不足和优化方案

2. how to install MySQL database in Galaxy Kirin offline mode

76. nearest common ancestor of binary tree

信息系统项目管理师---第七章项目成本管理历年考题

Installation and configuration of MariaDB

CentOS 7.5 install MySQL 8.0.27---yum
随机推荐
【Proteus仿真】矩阵键盘中断扫描
小米笔试真题一
DAO 中存在的不足和优化方案
防汛救援便携式应急通信系统解决方案
从CIO到顾问:IT领导者的转型之路
unittest单元测试框架
Mobile end test
1. 使用STM32CubeMX建立STM32G030C8T6项目工程
Unittest unit test framework
聊聊eureka的delta配置
Advanced features of selenium webdriver
习题8 #第8章 Verilog有限状态机设计-4 #Verilog #Quartus #modelsim
Redis (I) -- getting started with redis (2) -- redis data type
layer. prompt
【️爬虫必备->Scrapy框架从黑铁到王者️】初篇——万字博文详解(建议收藏)
Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!
Tag filtering and SQL filtering of rocketmq
MySQL enterprise development specification
企业数字化转型的点、线、面、体!
How to use the low code platform of the Internet of things for service management?