Skip to content

Instantly share code, notes, and snippets.

@cdzombak
Last active January 3, 2016 01:09
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 cdzombak/8387205 to your computer and use it in GitHub Desktop.
Save cdzombak/8387205 to your computer and use it in GitHub Desktop.
Basic nginx configuration to serve Dropbox Public folder
server {
listen 80;
server_name www.dropbox.dzombak.com;
rewrite ^ http://dropbox.dzombak.com$request_uri? permanent;
}
server {
listen 80;
server_name dropbox.dzombak.com;
root /home/cdzombak/Dropbox/Public;
location / {
autoindex off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment