Config nginx to read local index.html and return to clients
http {
include mime.types;
default_type application/octet-stream;
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80 default_server;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location ~ \.(html|css|js)(.*)$ {
root /home/www/html;
index index.html index.htm;
}
}
}
Comments
Post a Comment