Skip to content

Instantly share code, notes, and snippets.

Last active December 27, 2015 02:09
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Nginbox: Custom Domain for Dropbox Public Directory
listen 80;
location / {
set $index index.html;
rewrite ^.*\/$ $fastcgi_script_name$index last;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Copy link

urre commented Oct 31, 2013

  1. Set up domain or sub domain as usual
  2. Save gist as a regular site in /etc/nginx/sites-available/
  3. Symlink to /etc/nginx/sites-enabled/
  4. nginx -s reload
  5. Enjoy nice dropbox public links like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment