October 12, 2024Less than 1 minute
Folder Structure
How to startup
Nginx & Http
Virtual Machine
server_name to match the domain name.
server_name
: the domain name of a server
Matching rules: (Please be careful of the order for domain matching)
October 12, 2024About 2 min
How to manage session using clustering systems
- ip_hash
Other-Hash: $cookie_jsessionid, $request_uri;
lua logic redirect - Redis + SpringSession
hash
- inner ip_hash
upstream httpget{
ip_hash;
server 192.168.1.1;
server 192.168.1.2;
}
October 12, 2024About 1 min
Add headers
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods GET,POST;
add_header Access-Control-Allow-Headers NT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization;
August 26, 2023Less than 1 minute