- windows 格式
server {
listen 82;
server_name localhost;
root "D:/testfile/";
location / {
index index.php index.html;
autoindex on;
}
}
- linux 格式
server {
listen 80;
server_name localhost;
root /root/test/exp/;
location / {
autoindex on;
index index.html index.htm;
}
}