www Jump to primary domain
| The code is as follows |
Copy Code |
server { Listen 80; server_name www.111cn.net; Access_log off; Error_log off; return to Http://tool.lu$request_uri; } |
HTTP jumps to HTTPS
| The code is as follows |
Copy Code |
server { Listen 80; server_name tool.lu; return to Https://tool.lu$request_uri; } |
FastCGI
| The code is as follows |
Copy Code |
Location ~. php$ { Try_files $uri = 404; Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_param script_filename $document _root$fastcgi_script_name; Include Fastcgi_params; }
|
Cdn
| code is as follows |
copy code |
| Server { Listen 80; server_name s1.tool.lu s2.tool.lu s3.tool.lu s4.tool.lu; root/data/html/tool.lu/static; index index.html; Access_log off; error_log off; location/{ concat on; concat_types text/css Application/javascript; # Troubleshoot Third-party libraries with JS statements not ending with semicolons Concat_delimiter "NN"; concat_max_files expires 7d; } } |