server { listen 0.0.0.0:8086 ssl default_server; server_name localhost; ssl_certificate /etc/nginx/ssl/html.pem; ssl_certificate_key /etc/nginx/ssl/html.key; root /var/www/localhost/htdocs/; autoindex on; index index.php; location ~ \.php$ { include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_index index.php; } }