server
{
listen 80;
server_name cc.test.com 10.155.75.71;
index index.php index.html index.htm default.php default.htm default.html;
root D:/BtSoft/stop;
#server_name $host; 转发到内网71服务器location / {proxy_pass http://10.155.75.71:80/;proxy_set_header Host cc.cnzanyu.com;proxy_redirect off;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_connect_timeout 60;proxy_read_timeout 600;proxy_send_timeout 600;index index.html index.php index.htm;}#START-ERROR-PAGE#error_page 403 /403.html;#error_page 404 /404.html;#error_page 502 /502.html;#END-ERROR-PAGE#HTTP_TO_HTTPS_START#HTTP_TO_HTTPS_END#LIMIT_INFO_START#LIMIT_INFO_END#SSL-INFO-START#SSL-INFO-END#反代清理缓存配置location ~ /purge(/.*) {proxy_cache_purge cache_one $1$is_args$args;}#proxy 反向代理 需关闭!!!!!#include proxy/cc.test.com/*.conf;#PHP-INFO-STARTinclude php/73.conf;#PHP-INFO-END#REWRITE-STARTinclude rewrite/cc.test.com/*.conf;#REWRITE-END#redirect 重定向include redirect/cc.test.com/*.conf;#禁止访问的文件或目录location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|README.md){#return 404;}#一键申请SSL证书验证目录相关设置location ~ \.well-known{allow all;}access_log D:/BtSoft/wwwlogs/cc.test.com.log;error_log D:/BtSoft/wwwlogs/cc.test.com.error.log;
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号