www跳转到主域名
代码如下 | 复制代码 |
server { listen 80; server_name www.111cn.net; access_log off; return 301 http://tool.lu$request_uri; |
http跳转到https
代码如下 | 复制代码 |
server { listen 80; server_name tool.lu; return 301 https://tool.lu$request_uri; } |
fastcgi
代码如下 | 复制代码 |
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
代码如下 | 复制代码 |
server { listen 80; server_name s1.tool.lu s2.tool.lu s3.tool.lu s4.tool.lu; root /data/html/tool.lu/static; access_log off; location / { expires 7d; |
时间: 2024-09-16 16:40:52