mirror of
https://github.com/dianping/camel.git
synced 2024-11-13 04:04:41 +08:00
69 lines
937 B
Text
69 lines
937 B
Text
#user nobody;
|
|
worker_processes 1;
|
|
|
|
#daemon off;
|
|
#master_process off;
|
|
#error_log logs/error.log;
|
|
#error_log logs/error.log notice;
|
|
error_log logs/error.log info;
|
|
|
|
#pid logs/nginx.pid;
|
|
|
|
|
|
events {
|
|
worker_connections 1000;
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
#headers-more-nginx-module-0.24
|
|
server {
|
|
listen 6666;
|
|
more_set_headers 'More: headers-more-nginx-module';
|
|
|
|
}
|
|
|
|
#
|
|
upstream six@a {
|
|
server 127.0.0.1:6060;
|
|
}
|
|
upstream six@b {
|
|
server 127.0.0.1:6061;
|
|
}
|
|
|
|
server {
|
|
listen 8081;
|
|
location / {
|
|
dyups_interface;
|
|
}
|
|
}
|
|
server {
|
|
listen 80;
|
|
location / {
|
|
dp_domain "six";
|
|
dypp_key "uid";
|
|
proxy_pass http://$dp_upstream;
|
|
}
|
|
}
|
|
server {
|
|
listen 6060;
|
|
location / {
|
|
echo "I`m 6060";
|
|
}
|
|
}
|
|
server {
|
|
listen 6061;
|
|
location / {
|
|
echo "I`m 6061";
|
|
}
|
|
}
|
|
|
|
#upstream backend
|
|
upstream backend {
|
|
server 127.0.0.1:8080;
|
|
hash $request_uri;
|
|
hash_again 10; # default 0
|
|
}
|
|
|
|
}
|