1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
server { listen "[::]:80" // listen "[::]:443" { // ssl { // cert { // key "/path/to/privkey" // cert "/path/to/fullchain" // } // } // } host { // name "example.com" // name "www.example.com" path "/" { location "/var/www/html" } } }