Skip to content

Instantly share code, notes, and snippets.

@chzealot
Created September 24, 2011 03:38
Show Gist options
  • Save chzealot/1238921 to your computer and use it in GitHub Desktop.
Save chzealot/1238921 to your computer and use it in GitHub Desktop.
Nginx configuration for mldonkey
upstream mlnet {
server 127.0.0.1:4080;
}
server {
listen 80;
server_name mldonkey.kejie.me;
root /Users/zealot/.mldonkey/incoming;
location / {
if (!-f $request_filename) {
proxy_pass http://mlnet;
break;
}
}
location /files {
auth_basic mldonkey;
auth_basic_user_file htpasswd;
autoindex on;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment