diff options
author | swarupn <swarupnpvt@gmail.com> | 2018-11-06 19:36:20 +0530 |
---|---|---|
committer | swarupn <swarupnpvt@gmail.com> | 2018-11-12 20:32:51 +0530 |
commit | 6b11ecb07f5612819635eb48ec26d94d1fc64cf1 (patch) | |
tree | 6a4b31c4a8f06644e8102d3da2bbf8b6deb67409 /demo/nginx_proxy/demo-1/upstream_nginx.conf | |
parent | 07b448c987619766da5c12235f3f693f3cd60209 (diff) |
Chore: NGINX demo with multi stack and multi protocol (vpp-hoststck, lwip, kernel) (tcp, udp)
Change-Id: I3feb3a88b75b8292e0d7df77e8ed41ee0e2fc0aa
Signed-off-by: swarupn <swarupnpvt@gmail.com>
Diffstat (limited to 'demo/nginx_proxy/demo-1/upstream_nginx.conf')
-rw-r--r-- | demo/nginx_proxy/demo-1/upstream_nginx.conf | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/demo/nginx_proxy/demo-1/upstream_nginx.conf b/demo/nginx_proxy/demo-1/upstream_nginx.conf new file mode 100644 index 0000000..3904197 --- /dev/null +++ b/demo/nginx_proxy/demo-1/upstream_nginx.conf @@ -0,0 +1,80 @@ +#user nobody; +worker_processes 1; +#daemon 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 1024; +} + + +http { + include mime.types; + default_type application/octet-stream; + + #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + # '$status $body_bytes_sent "$http_referer" ' + # '"$http_user_agent" "$http_x_forwarded_for"'; + + #access_log logs/access.log main; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + + #gzip on; + + server { + listen 80; + #server_name localhost; + + #charset koi8-r; + + #access_log logs/host.access.log main; + + location / { + return 200 "Hello from upstream $hostname $server_addr:$server_port. Connect from $http_x_real_ip - $remote_user via $remote_addr:$remote_port at [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent\n"; + } + + #error_page 404 /404.html; + + # redirect server error pages to the static page /50x.html + # + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root html; + } + + # proxy the PHP scripts to Apache listening on 127.0.0.1:80 + # + #location ~ \.php$ { + # proxy_pass http://127.0.0.1; + #} + + # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 + # + #location ~ \.php$ { + # root html; + # fastcgi_pass 127.0.0.1:9000; + # fastcgi_index index.php; + # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; + # include fastcgi_params; + #} + + # deny access to .htaccess files, if Apache's document root + # concurs with nginx's one + # + #location ~ /\.ht { + # deny all; + #} + } + +} |