Code Monkey home page Code Monkey logo

reverse-proxy-php's Introduction

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实现的代理,功能基本一样。

自己在GAE搭建的php 谷歌反向代理 绑定了自己的域名

GAE php空间:

https://g.koala.tk

apache php空间:

https://proxy.koala.tk

reverse-proxy-php's People

Contributors

koalabearguo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.