Merge pull request #2 from NickCoolii/patch-1

Updated description
This commit is contained in:
Nemesis Fixx
2018-09-29 11:51:55 +03:00
committed by GitHub
+16 -8
View File
@@ -11,18 +11,26 @@ where it is not specified by the client (motivation being, I was specifically us
HOW-TO:
=======
Adapting from the the original How-To:
Send request to your script and set query parametr `csurl` to desired URL with its schema.
To use the proxy effectively you will require a server with .htaccess and mod_rewrite support.
Example:
`https://proxy.xyz.com/proxy.php?csurl=https://github.com`
Also you can use cURL for test in this way:
`curl https://proxy.xyz.com/proxy.php?csurl=https://github.com`
Where `proxy.xyz.com` - your domain name.
INSTALL
1. Preferably use the proxy on it's own domain e.g. http://proxy.xyz.com/
1. Preferably use the proxy on it's own domain e.g. http://proxy.xyz.com/
2. Download or clone this repo and copy the `config.php` and `proxy.php` files into the root web folder (or wherever it is you want to deploy the proxy).
2. Download or clone this repo and copy the `config.php` and `proxy.php` files into the root web folder (or wherever it is you want to deploy the proxy).
3. [Optionally] rename the `proxy.php` script to 'index.php' if you wish to proxy with the index implied...
3. [Optionally] rename the `proxy.php` script to 'index.php' if you wish to proxy with the index implied...
4. Edit the `config.php` script - adjust the target domain list to reflect the only domains you would like to proxy for!
4. Edit the `config.php` script - adjust the target domain list to reflect the only domains you would like to proxy for!
Done!
Done!