1.将我的项目或者动态资源(图片、视频、音频)放到nginx服务器上
2.配置nginx.conf
可配置多个location
root:指定拜访门路
index:指定首页localhost:90/imooc// (*为imooc下的门路)
alias:配置别名 localhost:90/static// (*为imooc下的门路)
附: 使gzip压缩晋升申请效率。
在nginx.conf文件中做如下操作
再附localtion匹配规定
1.将我的项目或者动态资源(图片、视频、音频)放到nginx服务器上
2.配置nginx.conf
可配置多个location
root:指定拜访门路
index:指定首页localhost:90/imooc// (*为imooc下的门路)
alias:配置别名 localhost:90/static// (*为imooc下的门路)
附: 使gzip压缩晋升申请效率。
在nginx.conf文件中做如下操作
再附localtion匹配规定