I nginx configuration below
Worker_processes 1;
Events {
Worker_connections 1024;
}
HTTP {
. Include the mime types;
Default_type application/octet - stream;
Sendfile on;
Keepalive_timeout 65;
# gzip on;
Server {
listen 80;
Server_name 192.168.0.20;
# background services configuration, configure the location can be accessed through http://domain name/jeecg - boot/XXXX
The location ^ ~/jeecg - boot {
Proxy_pass http://127.0.0.1:8080/jeecg-boot/;
Proxy_set_header Host 127.0.0.1;
Proxy_set_header X - Real - IP $remote_addr;
Proxy_set_header X - Forwarded - For $proxy_add_x_forwarded_for;
}
# solve the Router (mode: 'history') mode, the routing address can't find the page refresh problems
The location/{
The root HTML;
The index index. HTML index. HTM;
if (! - e $request_filename) {
Rewrite ^ (. *) $/index. The HTML? S=$1 last;
break;
}
}
}
}
But can't find the page background,
Looking at seems to be a port number, so I manually add port, on a visit to find can access to the backstage, strives for the bosses give directions
CodePudding user response:
How to set up, can I make he take port