Created
September 24, 2011 03:38
-
-
Save chzealot/1238921 to your computer and use it in GitHub Desktop.
Nginx configuration for mldonkey
This file contains hidden or 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
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