Skip to content
Web proxy written in PHP.
PHP HTML ApacheConf
Latest commit 82d5287 Sep 2, 2015 @hsleisink Release 3.0
Failed to load latest commit information.
libraries Release 3.0 Sep 2, 2015
views Release 3.0 Sep 2, 2015
.htaccess Release 2.3 Feb 19, 2013
README.md Release 3.0 Sep 2, 2015
config.php Release 3.0 Sep 2, 2015
favicon.ico Release 2.3 Feb 19, 2013
index.php Release 3.0 Sep 2, 2015
robots.txt Release 2.3 Feb 19, 2013
system.php Release 3.0 Sep 2, 2015
tunnel.png Release 2.3 Feb 19, 2013

README.md

Proxy

This is a webproxy script written in PHP by Hugo Leisink hugo@leisink.net.

Installation

  • Copy all files to a suitable location.
  • Make the webserver rewrite all requests to index.php.
  • Make this proxy available via both HTTP and HTTPS.
  • Create a wildcard SSL certificate for *.proxy.tld.
  • Replace the first part of the hostname with a wildcard and use the result as an alias in your webserver configuration. For example, if you choose www.proxy.tld as the hostname for this proxy, use *.proxy.tld as an alias for it.

The hostname proxy.tld will work with for HTTP, but will cause an SSL error when using it with HTTPS because of the wildcard certificate.

Hiawatha webserver example configuration

VirtualHost { Hostname = www.proxy.tld, *.proxy.tld WebsiteRoot = /var/www/proxy StartFile = index.php AccessLogfile = /var/log/hiawatha/proxy-access.log ErrorLogfile = /var/log/hiawatha/proxy-error.log UseFastCGI = PHP5 UseToolkit = catch_all TimeForCGI = 60 TLScertFile = tls/proxy.pem }

UrlToolkit { ToolkitID = catch_all Match .* Rewrite /index.php }

Something went wrong with that request. Please try again.