All Projects → koalabearguo → reverse-proxy-php

koalabearguo / reverse-proxy-php

Licence: other
在GAE php空间或者在国外apache php空间搭建反向代理

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to reverse-proxy-php

docker-magento
🐳 Environment for a Magento1 application using Docker.
Stars: ✭ 16 (-68.63%)
Mutual labels:  apache
silverbox
Guide describing how to setup compact, silent and energy-efficient GNU/Linux home server
Stars: ✭ 42 (-17.65%)
Mutual labels:  apache
h2go
Apache H2 Go SQL Driver
Stars: ✭ 35 (-31.37%)
Mutual labels:  apache
AWS-EB-SSL
Easy secure (single instance) Elastic Beanstalk apps
Stars: ✭ 30 (-41.18%)
Mutual labels:  apache
PoC-CVE-2021-41773
No description or website provided.
Stars: ✭ 39 (-23.53%)
Mutual labels:  apache
openwhisk-runtime-dotnet
Apache OpenWhisk Runtime .Net supports Apache OpenWhisk functions written in .Net languages
Stars: ✭ 23 (-54.9%)
Mutual labels:  apache
ElegantRL
Scalable and Elastic Deep Reinforcement Learning Using PyTorch. Please star. 🔥
Stars: ✭ 2,074 (+3966.67%)
Mutual labels:  gae
baikal-docker
Provides a ready-to-go Baikal server, incl. docker-compose.yml & Systemd service file
Stars: ✭ 85 (+66.67%)
Mutual labels:  apache
ModSecurityCRS
Implementation of ModSecurity, Core Rule Set (CRS) on Apache server. ModSecurity, sometimes called Modsec, is an open-source web application firewall. ModSecurity was installed and configured on an Ubuntu VM using Virtual Box
Stars: ✭ 24 (-52.94%)
Mutual labels:  apache
modules
Mesos modules examples and open source modules outside of the Apache Mesos source tree.
Stars: ✭ 26 (-49.02%)
Mutual labels:  apache
docker-apache-letsencrypt
This docker-image contains a simple Apache webserver and supports https-encryption by great Let's Encrypt certificates!
Stars: ✭ 65 (+27.45%)
Mutual labels:  apache
tutorial lamp virtualbox
Tutorial para instalação da VirtualBox, Linux, Apache, MySQL e PHP.
Stars: ✭ 31 (-39.22%)
Mutual labels:  apache
qpid-dispatch
Mirror of Apache Qpid Dispatch
Stars: ✭ 62 (+21.57%)
Mutual labels:  apache
comdev-site
Website sources for the Apache Community Development Website
Stars: ✭ 70 (+37.25%)
Mutual labels:  apache
hadoop-data-ingestion-tool
OLAP and ETL of Big Data
Stars: ✭ 17 (-66.67%)
Mutual labels:  apache
pulsar-express
Simple Web Interface for Apache Pulsar
Stars: ✭ 95 (+86.27%)
Mutual labels:  apache
GaeSupportLaravel
Run Laravel on Google App Engine
Stars: ✭ 22 (-56.86%)
Mutual labels:  gae
qpid-proton-j
Mirror of Apache Qpid Proton-J
Stars: ✭ 28 (-45.1%)
Mutual labels:  apache
vhost-gen
Configurable vHost generator for Apache 2.2, Apache 2.4 and Nginx
Stars: ✭ 111 (+117.65%)
Mutual labels:  apache
jota-cert-checker
Check SSL certificate expiration date of a list of sites.
Stars: ✭ 45 (-11.76%)
Mutual labels:  apache

reverse-proxy-php

看了几天的php教程,写了个基于GAE的php反向代理,太不专业,但是可以用 因为GAE php默认不支持curl,所以这里使用的是file_get_content,目前支持

1.cookie

2.http头中的cache-control,location字段

3.GET/POST

4.强制使用https

5.客户端agent

6.全文域名替换

.htaccess 是在使用apache主机空间时使用的,空间目录下,除了index.php是默认代理脚本, 还可以放置其他的php脚本,访问的时候按照路径访问就可以了。

app.yaml文件是用于GAE的,只要把app.yaml和index.php部署到GAE空间就可以了。

index.php中的$target_host可以修改为自己反向代理的网址。

index-curl-version.php是使用的curl实现的代理,功能基本一样。

好久没用了 ,发现google已经不好代理了。。。各种策略限制。。。测试中发现不要告诉谷歌自己的agent就会好很多。。。

关于index.php放到二级目录,最新的文件已经支持

  1. 需要修改.htaccess中这一行,比如二级目录是proxy
RewriteRule . /index.php [L]
#修改为:
RewriteRule . /proxy/index.php [L]
  1. nginx空间我没有试过,需要自己研究重定向的问题
  2. GAE空间早就不能用了,未测试

apache php demo空间:

https://koalabear.tk

推荐

  • 这种代理模式只能代理特定的网站,用起来没那么方便,如果你有免费php空间,不妨试下我这个工程:
https://github.com/koalabearguo/php-proxy
  • 放到国外php空间,可以代理几乎任何网站
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].