nginx配置
1. 安装
安装文档
2. http模块配置
http{
upstream a{
}
# root 表示http://localhost/ 查找html下的index.html页面
# root /usr/local/index 也可以用全路径
server {
listen 80
location / {
root index.html
}
}
}
微信扫一扫
安装文档
http{
upstream a{
}
# root 表示http://localhost/ 查找html下的index.html页面
# root /usr/local/index 也可以用全路径
server {
listen 80
location / {
root index.html
}
}
}
相关推荐