Skip to content

Instantly share code, notes, and snippets.

@luispabon
Created July 13, 2016 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luispabon/d8f878acac630166ec564c8cf9ec1c98 to your computer and use it in GitHub Desktop.
Save luispabon/d8f878acac630166ec564c8cf9ec1c98 to your computer and use it in GitHub Desktop.
Pirate bay apache reverse proxy
# Basic reverse proxy, no SSL (useful in Kodi)
# You need to install modules proxy, proxy_http, ssl
<VirtualHost *:80>
ServerName your.address
ProxyPreserveHost Off
ProxyRequests Off
ProxyTimeout 60
SSLProxyEngine on
SSLProxyVerify none
SSLProxyProtocol all
ProxyPass / https://thepiratebay.org/
ProxyPassReverse / https://thepiratebay.org/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
SetEnv proxy-initial-not-pooled
SetEnv proxy-sendchunks 1
## Logging
ServerSignature Off
ErrorLog "/var/log/apache2/tpb-proxy_error.log"
CustomLog "/var/log/apache2/tpb-proxy_access.log" combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment