- 在/etc/nginx/conf.d下添加擴展名爲conf的配置文件
server{
listen 8100;
root /released;
server_name nginx_localhost;
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
server{
listen 8100;
root /released;
server_name nginx_localhost;
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
server { listen 80; server_name localhost; charset utf8; #access_log logs/host.access.log main;