From bb8490d16b61b27f3418f005968bcc13e0d9afb4 Mon Sep 17 00:00:00 2001 From: tux Date: Sat, 12 Jul 2025 16:40:24 -0400 Subject: [PATCH] Add snowmaid.com-ssl.md --- snowmaid.com-ssl.md | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 snowmaid.com-ssl.md diff --git a/snowmaid.com-ssl.md b/snowmaid.com-ssl.md new file mode 100644 index 0000000..0d25092 --- /dev/null +++ b/snowmaid.com-ssl.md @@ -0,0 +1,48 @@ + + ServerName snowmaid.com + ServerAlias www.snowmaid.com + ServerAdmin webmaster@localhost + + DocumentRoot /opt/www/snowmaid/web + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + RequestHeader set X-Forwarded-Proto "https" + Header append Vary Host + + # Reverse Proxy for Solr + ProxyRequests Off + ProxyPreserveHost On + + + Require all granted + + + ProxyPass /solr http://localhost:8983/solr + ProxyPassReverse /solr http://localhost:8983/solr + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + # Custom Redirects + RewriteEngine On + RewriteRule ^/inventory$ https://dangercactus.com/inventory [R=301,L] + RewriteRule ^/inventory/(.*)$ https://dangercactus.com/inventory/$1 [R=301,L] + RewriteRule ^/catalog$ https://dangercactus.com/catalog [R=301,L] + RewriteRule ^/catalog/(.*)$ https://dangercactus.com/catalog/$1 [R=301,L] + + + Alias /garden-club /opt/www/garden-club/piwigo + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateFile /etc/letsencrypt/live/dangercactus.com/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/dangercactus.com/privkey.pem + \ No newline at end of file