jshensh / phpreverseproxy Goto Github PK
View Code? Open in Web Editor NEWPHP 反向代理
PHP 反向代理
您好!请问PHP代码的第二行需要怎么配置才能用呢?
require('./vendor/autoload.php');
直接使用的话会报错。
Warning: require(./vendor/autoload.php): failed to open stream: No such file or directory
Fatal error: require(): Failed opening required './vendor/autoload.php' (include_path='.:')
使用环境是 nginx + php 7.4
工具非常好用!感谢!
经过测试,真实服务器收到的浏览器UA为:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
而不是客户端UA,容易被针对风控。
另外希望可以加入请求头header覆盖功能用于指定Cookie、Token等。
也建议考虑将配置文件从代码中独立出来。感谢
反代功能我觉得已经足够强大了,我想能不能添加一个缓存功能?
如果能那么就完美了
Parse error: syntax error, unexpected 'getallheaders' (T_STRING) in /www/wwwroot/XXXX/index.php on line 10
宝塔
PHP7.04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.