1.實現效果
2.準備工作
在linux服務器/創建一個websitedata/image/qxlxi.jpg 和 websitedata/html/a.html 資源、
3.修改Nginx配置文件
server{
listen 80;
server_name 192.168.58.136;
location /html/{
root /websitedata/;
index index.html index.htm;
}
location /images/{
root /websitedata/;
autoindex on;
}
}