server { listen 127.0.0.1; server_name localhost; access_log /var/log/nginx/localhost.access_log main; error_log /var/log/nginx/localhost.error_log info; root /usr/share/nginx/html; index index.cgi index.htm index.html index.php; } # SSL example #server { # listen 127.0.0.1:443; # server_name localhost; # ssl on; # ssl_certificate /etc/ssl/nginx/nginx.pem; # ssl_certificate_key /etc/ssl/nginx/nginx.key; # access_log /var/log/nginx/localhost.ssl_access_log main; # error_log /var/log/nginx/localhost.ssl_error_log info; # root /usr/share/nginx/html; # index index.cgi index.htm index.html index.php; #}