Htt在Windows 8中的nginx中不起作用。我有以下配置。 Rakesh是我的电脑名称。
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name rakesh;
index index.html index.htm;
}
# HTTPS server
server {
listen 443;
server_name rakesh;
ssl_certificate cert.pem;
ssl_certificate_key key.pem;
index index.html index.htm;
}
}