summaryrefslogtreecommitdiff
path: root/server-build/assets/wordpress.conf
diff options
context:
space:
mode:
authorbuckE <buckE@disroot.org>2020-04-03 01:39:21 +0000
committerbuckE <buckE@disroot.org>2020-04-03 01:39:21 +0000
commit82ba69fca3ebebf2a5d85779cd4605df76a787d8 (patch)
tree6daa7307dcfe7d9b83f22ae8f0b8b86cdd95813a /server-build/assets/wordpress.conf
parentb2ec169dc3ca72f1c32efb605e221c2b8b451098 (diff)
downloadwoocommerce-taler-82ba69fca3ebebf2a5d85779cd4605df76a787d8.tar.gz
woocommerce-taler-82ba69fca3ebebf2a5d85779cd4605df76a787d8.tar.bz2
woocommerce-taler-82ba69fca3ebebf2a5d85779cd4605df76a787d8.zip
Renamed README.md to Server-Build-Instructions.md ; updated that file after testing up to WP installation; created /scripts/ssl-create-selfsigned.sh
Diffstat (limited to 'server-build/assets/wordpress.conf')
-rw-r--r--server-build/assets/wordpress.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/server-build/assets/wordpress.conf b/server-build/assets/wordpress.conf
new file mode 100644
index 0000000..983cedf
--- /dev/null
+++ b/server-build/assets/wordpress.conf
@@ -0,0 +1,25 @@
+# wordpress.conf
+# The following Apache2 .conf file will accept connections on ports 80 (http) or 443 (https).
+#
+# Connections on port 80 will be redirected to 443. Please make sure to change the path to your
+# SSL certificate and key. If you are using LetsEncrypt, this probably means changing
+# _domain.com_ in the path only. Also change the _ServerName_ directive to match your domain name.
+
+<VirtualHost *:80>
+ RewriteEngine On
+ RewriteCond %{HTTPS} off
+ RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
+</VirtualHost>
+
+<VirtualHost *:443>
+ SSLEngine on
+ # Edit the path to your SSL certificate and key here:
+ SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
+ SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem
+ <Directory /var/www/wordpress/>
+ AllowOverride All
+ </Directory>
+ DocumentRoot /var/www/wordpress/
+ # Add your server name here:
+ ServerName domain.com
+</VirtualHost>