server {
set $response_cookie '';
set $request_cookie '';
set $response_body '';
set $currentDate '';
listen 443 ssl;
server_name cdhesyy-doctor.test.com;
ssl_certificate ssl/test.com.pem;
ssl_certificate_key ssl/test.com.key;
root /var/www/frontend/test;
index index.html;
location ~ /\.(git|svn) {
return 404;
}
location = /robots.txt {
log_not_found off;
access_log off;
return 200 "User-agent: *\nDisallow: /";
}
location ~ /\. {
return 404;
access_log off;
log_not_found off;
}
location / {
try_files $uri /index.html;
}
}