服务器问答
下面这样写的话,出现 sample.com/abc 就会因为 /abc 不存在,出 404 错误。想把 URL 请求里的所有参数都忽略。
server {
listen 443 ssl;
server_name sample.com;
ssl on;
ssl_certificate /etc/ssl/sample.com.pem;
ssl_certificate_key /etc/ssl/sample.com.key;
ssl_prefer_server_ciphers on;
access_log off;
error_log off;
location / {
root /usr/local/nginx/html;
index index.html index.htm;
}
}大带宽服务器