nginx配置
- 服务启动 start nginx 或者 nginx.exe
- 重启命令
- 安装路径下的 nginx.exe -s reload
- 编辑conf/nginx.conf
- 在住配置文件95行空白处增加:include vhost/*.conf
- 在nginx-1.10.2\conf目录下新建vhost目录以及 image.mall.com.conf 和
- 在nginx-1.10.2\conf目录下新建vhost目录以及 tomcat.mall.com.conf
- 域名配置:C:\Windows\System32\drivers\etc\hosts
实时编译查看错误信息
IDEA智能提示忽略大小写
映射配置
server {
listen 80;
server_name www.xuecheng.com;
ssi on;
ssi_silent_errors on;
location / {
alias E:/WorkSpaces/IdeaProjects/mall;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}