UCenter如何与DZ前端用户数据修改打通?且不对数据库造成风险
1条回答 默认 最新
ilmss 2022-08-10 19:28关注nginx配置参考
server { listen 80; server_name www.uc.com; set $root /web/ucenter ; root $root; location / { index index.php index.html index.htm; if (!-f $request_filename) { rewrite ^/(.*)$ /index .php?q=$1 last; } } include /etc/nginx/conf .d /php .conf; }然后通过www.uc.com这个域名来访问ucenter用户中心。
Linux系统修改:/etc/hosts
windows系统修改:C:\Windows\System32\drivers\etc\hosts
添加映射关系,以后www.uc.com就跟192.168.1.9关联起来了。(类似屏蔽优酷广告的方法,也是通过修改hosts来实现的)本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报 编辑记录