摘要:
## 六、浏览器本地缓存配置 语法:expires 60 s|m|h|d ```动静分离效果: server { listen 80; server_name localhost; location / { root html; index index.html; } location ~ \.(p 阅读全文
posted @ 2019-04-14 23:02
我&菜鸟
阅读(526)
评论(0)
推荐(0)
摘要:
## 一、Nginx中虚拟主机配置 ### 1、基于域名的虚拟主机配置 1、修改宿主机的hosts文件(系统盘/windows/system32/driver/etc/HOSTS) linux : vim /etc/hosts 格式: ip地址 域名 eg: 192.168.111.152 ww 阅读全文
posted @ 2019-04-14 15:48
我&菜鸟
阅读(349)
评论(0)
推荐(0)
摘要:
./nginx -v 查看nginx版本 ./nginx -V 查看nginx的编译版本及配置的参数 ./nginx -t 主要验证nginx.conf配置文件是否有问题 ./nginx -c 根据配置文件的位置启动nginx 我的本机nginx配置文件路径是 /usr/local/nginx/co 阅读全文
posted @ 2019-04-14 12:58
我&菜鸟
阅读(2717)
评论(0)
推荐(0)
浙公网安备 33010602011771号