Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timgws/dodgeproxy
a very dodgy quickly whipped together PHP script for a caching reverse proxy on Apache
https://github.com/timgws/dodgeproxy
Last synced: about 2 months ago
JSON representation
a very dodgy quickly whipped together PHP script for a caching reverse proxy on Apache
- Host: GitHub
- URL: https://github.com/timgws/dodgeproxy
- Owner: timgws
- Created: 2015-03-10T05:55:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T03:47:30.000Z (over 4 years ago)
- Last Synced: 2024-04-17T05:36:40.939Z (9 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dodgeproxy
This is a very dodgy quickly whipped together script for a proxy on Apache.
For those times when mod_rewrite and mod_proxy are just not enough, but you
can't or don't want to deploy a full reverse proxy, this is for you!## What's implemented:
* Reverse proxy with:
* etag's for HTTP caching!
* cachingVery dumb proxy. You will have to clear out the cache folder if you want
to see new/updated content.Great for server migrations, simply place this on the old server while
the DNS propagates.## Clearing the cache
I have put a rather crude rm -rfv inside `clear.php`. You might want
to remove this on a production reployment & protect it with a htpasswd.# Why dodgeproxy?
Usually for a reverse proxy, I would just use something like nginx or varnish,
however, when migrating websites from shared hosting over to dedicated servers,
sometimes you will not have access to install these on existing servers.This was quickly written so sites could be migrated from existing hosts
to new hosting servers without any downtime, as long as Apache was installed
with htaccess support. (Think, cPanel shared hosting accounts)