Created
December 8, 2012 04:01
-
-
Save kindy/4238542 to your computer and use it in GitHub Desktop.
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
# http://douban.fm/ 边听边寸,这样下次可以本机听了。 | |
# nginx.conf | |
server { | |
listen 80; | |
server_name .douban.com; | |
root /mp3_douban; | |
location / { | |
try_files $uri @fetch; | |
} | |
location @fetch { | |
proxy_set_header Host $host; | |
proxy_pass http://60.194.100.3; | |
proxy_store /mp3_douban$uri; | |
proxy_store_access user:rw group:rw all:r; | |
} | |
} | |
# /etc/hosts | |
127.0.0.1 mr1.douban.com mr2.douban.com mr3.douban.com mr4.douban.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment