Skip to content

Instantly share code, notes, and snippets.

@rsignell-usgs
Created August 26, 2015 16:29
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 rsignell-usgs/b243cf56f070d56e9a9b to your computer and use it in GitHub Desktop.
Save rsignell-usgs/b243cf56f070d56e9a9b to your computer and use it in GitHub Desktop.
more /etc/apache2/sites-enabled/010-usgs_geoport
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName geoport.whoi.edu
DocumentRoot /var/www
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding"
<IfModule mod_proxy.c>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment