Created
September 24, 2009 03:49
-
-
Save rmax/192498 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
{'Accept-Language': 'en-us,en;q=0.5', 'Accept-Encoding': 'gzip,deflate', 'X-Forwarded-Host': 'chenko.server.com', 'Keep-Alive': '10', 'X-Forwarded-For': '127.0.0.12', 'Connection': 'Keep-Alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Host': 'localhost:8000', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'X-Real-Ip': '127.0.0.12'} |
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
vserver!2!nick = tornado | |
vserver!2!document_root = /home/rho/Webroot/chenko/website | |
vserver!2!match = wildcard | |
vserver!2!match!domain!1 = chenko.local | |
vserver!2!match!domain!1 = chenko.server.com | |
vserver!2!rule!1!match = default | |
vserver!2!rule!1!handler = proxy | |
vserver!2!rule!1!handler!balancer = round_robin | |
vserver!2!rule!1!handler!balancer!source!1 = 2 | |
source!2!type = host | |
source!2!host = localhost:8000 |
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
{'Accept-Language': 'en-us,en;q=0.5', 'Accept-Encoding': 'gzip,deflate', 'X-Scheme': 'http', 'Connection': 'close', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Host': 'chenko.server.com', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'X-Real-Ip': '127.0.0.12'} |
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 chenko.server.com chenko.local; | |
location / { | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Scheme $scheme; | |
proxy_redirect false; | |
proxy_pass_header Server; | |
proxy_pass http://127.0.0.1:8000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment