Här kan du läsa hur du konfigurerar nginx med självsignerande certifikat.







This is more a note for me, to remember this when my memory steps away!
In PHP, I have:
Code snippet:
session_start();
ini_set(‘display_errors’,1);
ini_set(‘display_startup_errors’,1);
error_reporting(-1);
Throws a 500 error, when I tried to access the page.
You have to add this line in .htaccess:
php_flag display_errors 1
And then restart the server with: service apache2 restart
Referens: http://stackoverflow.com/questions/17693391/500-internal-server-error-for-php-file-not-for-html