diff --git a/README.md b/README.md index 5bebe2f..93449b2 100644 --- a/README.md +++ b/README.md @@ -48,4 +48,35 @@ Fix details laters curl -s https://api.wordpress.org/secret-key/1.1/salt/ sudo nano /var/www/shop/wp-config.php define('FS_METHOD', 'direct'); -``` \ No newline at end of file +``` + +### Apache HTTPS Setup +Create PEM files +```sh +cd /var/www/wp/ssl +openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem +``` +Create apache2 file enter `sudo nano /etc/apache2/sites-available/wp.conf` then Copy+Paste the following then CTRL+X then Y then Enter to save. +``` + + + ServerName shop.sarimoko.com + ServerAdmin travis@sarimoko.com + DocumentRoot /var/www/wp/html/ + SSLEngine on + SSLCertificateFile /var/www/wp/ssl/cert.pem + SSLCertificateKeyFile /var/www/wp/ssl/key.pem + + AllowOverride All + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + SSLOptions +StdEnvVars + + + SSLOptions +StdEnvVars + + + +```