Skip to content

Instantly share code, notes, and snippets.

@jaykepeters
Last active April 6, 2019 23:09
Show Gist options
  • Save jaykepeters/65e48718c817630bcf8382cf76b9db43 to your computer and use it in GitHub Desktop.
Save jaykepeters/65e48718c817630bcf8382cf76b9db43 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName proxy.jpits.us
SSLProxyEngine on
ProxyRequests Off
ProxyPreserveHost on # Optional, may resolve login issues.
<Proxy *>
Order allow,deny
Allow from All
</Proxy>
ProxyPass / https://www.google.com/
ProxyPassReverse / https://www.google.com/
ErrorLog /var/log/apache2/google.local-error.log
CustomLog /var/log/apache2/google.local-access.log combined
</VirtualHost>
# Taken from https://stackoverflow.com/questions/40938148/reverse-proxy-for-external-url-apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment