Last active
January 3, 2016 01:09
-
-
Save cdzombak/8387205 to your computer and use it in GitHub Desktop.
Basic nginx configuration to serve Dropbox Public folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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