


启动nginx

配置 hosts


在 /mydata/nginx/conf/conf.d 目录下,复制一份default.conf 名为 gulimall.conf

修改gulimall.conf
一定记得加 “;” 分号结尾
proxy_pass http://192.168.150.1:12000;

重启 nginx

gulimall.com就访问到了首页

本文详细介绍了如何通过修改Nginx配置文件实现对Gulimall网站的反向代理,包括配置hosts文件、复制并修改default.conf文件为gulimall.conf,设置正确的proxy_pass地址,并重启Nginx服务。



启动nginx

配置 hosts


在 /mydata/nginx/conf/conf.d 目录下,复制一份default.conf 名为 gulimall.conf

修改gulimall.conf
一定记得加 “;” 分号结尾
proxy_pass http://192.168.150.1:12000;

重启 nginx

gulimall.com就访问到了首页


被折叠的 条评论
为什么被折叠?
&spm=1001.2101.3001.5002&articleId=108211110&d=1&t=3&u=1a4035f305654a35a3ca8c8aa18479e3)