From 3acc41c38b01ee3ad1390e4aa7b28d21a1847b92 Mon Sep 17 00:00:00 2001 From: Giteadmin Date: Sun, 17 Sep 2023 12:24:57 +0200 Subject: [PATCH] Upload files to "Apache2 site" --- .../balluff-jsoneditor.example.com.conf | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Apache2 site/balluff-jsoneditor.example.com.conf diff --git a/Apache2 site/balluff-jsoneditor.example.com.conf b/Apache2 site/balluff-jsoneditor.example.com.conf new file mode 100644 index 0000000..cc11073 --- /dev/null +++ b/Apache2 site/balluff-jsoneditor.example.com.conf @@ -0,0 +1,33 @@ + +ServerName balluff-jsoneditor.example.com +ErrorLog ${APACHE_LOG_DIR}/balluff-jsoneditor.example.com-error.log +CustomLog ${APACHE_LOG_DIR}/balluff-jsoneditor.example.com-access.log combined +RewriteEngine on +RewriteCond %{HTTPS} !=on +RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [R=301,L] +ProxyPass / http://127.0.0.1:2980/ +ProxyPassReverse / http://127.0.0.1:2980/ +ProxyPreserveHost On +ProxyAddHeaders On +RequestHeader set X-Forwarded-Proto "http" +RewriteCond %{SERVER_NAME} =balluff-jsoneditor.example.com +RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] + + + + +ServerName balluff-jsoneditor.example.com +ErrorLog ${APACHE_LOG_DIR}/balluff-jsoneditor.example.com-error.log +CustomLog ${APACHE_LOG_DIR}/balluff-jsoneditor.example.com-access.log combined +RewriteEngine on +ProxyPass / http://127.0.0.1:2980/ +ProxyPassReverse / http://127.0.0.1:2980/ +ProxyPreserveHost On +ProxyAddHeaders On +RequestHeader set X-Forwarded-Proto "http" +SSLCertificateFile /etc/letsencrypt/live/balluff-jsoneditor.example.com/fullchain.pem +SSLCertificateKeyFile /etc/letsencrypt/live/balluff-jsoneditor.example.com/privkey.pem +Include /etc/letsencrypt/options-ssl-apache.conf + + +