Skip to content

Instantly share code, notes, and snippets.

@michimau
Last active August 5, 2019 10:30
Show Gist options
  • Save michimau/615193a4558851855215661ac99246ae to your computer and use it in GitHub Desktop.
Save michimau/615193a4558851855215661ac99246ae to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName sdi.eea.europa.eu
ProxyPreserveHost On
RewriteEngine On
<Location /datashare>
RewriteEngine On
#RewriteCond %{HTTP:dummyentry} ^$
RewriteCond %{HTTP:dummyentry} "dummy" [NC]
RewriteRule ^/ http://app/$1 [R=302,L,NC]
#ProxyPass http://app
#ProxyPassReverse http://app
</Location>
<Location /data>
#ProxyPreserveHost On
#Order deny,allow
#Order allow,deny
#Deny from all
RequestHeader set dummyentry dummy
ProxyPass http://proxy/datashare
ProxyPassReverse http://proxy/datashare
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment