this adds a certificate for one domain and modifies the nginx config to use the certificate also giving you the option to redirect all traffic to the secure version
Nginx Server Block with Rewrite
Here is a basic nginx server block with rewrite to the index.php file.
So it takes all the parameters and passes them into the index, into the variable $p or $_GE..
This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.