Skip to content

Instantly share code, notes, and snippets.

@yangg
Created April 7, 2012 16:26
Show Gist options
  • Save yangg/2330129 to your computer and use it in GitHub Desktop.
Save yangg/2330129 to your computer and use it in GitHub Desktop.
Apache Configs
# http://httpd.apache.org/docs/current/mod/core.html
# http://httpd.apache.org/docs/current/mod/mod_proxy.html
# enable proxy modules
# sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled
# sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled
# sudo service apache2 force-reload
# or
# LoadModule proxy_module modules/mod_proxy.so
# LoadModule proxy_http_module modules/mod_proxy_http.so
# Listen 80
NameVirtualHost *:80
<VirtualHost *:80>
ServerName notify8.dropbox.com
ServerAlias notify*.dropbox.com
ProxyPass / http://file.uedsky.com/
ProxyPassReverse / http://file.uedsky.com/
</VirtualHost>
# vim: ft=apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment