Skip to content

Instantly share code, notes, and snippets.

@zhangchunlin
Created October 17, 2019 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhangchunlin/32ad84fa3b794728c958f7579f427251 to your computer and use it in GitHub Desktop.
Save zhangchunlin/32ad84fa3b794728c958f7579f427251 to your computer and use it in GitHub Desktop.
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
server {
listen 6699;
location @uliweb{
proxy_pass http://localhost:8000;
}
location @vue{
proxy_pass http://localhost:8080;
}
location / {
default_type text/html;
content_by_lua_block {
ngx.exec("@vue")
}
}
location /backend {
default_type text/html;
content_by_lua_block {
ngx.exec("@uliweb")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment