This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| # START WP_ENCRYPTION_FIREWALL | |
| if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { | |
| $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_X_FORWARDED_FOR"]; | |
| $_SERVER["HTTPS"] ="on"; | |
| } | |
| define("FORCE_SSL_ADMIN", false); | |
| # END WP_ENCRYPTION_FIREWALL |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).