Files
starshipos-f18-config/sites-available/gitea.strshipos-le-ssl.conf
T
Robert JamesandClaude Sonnet 4.6 46c2ae201f Initial commit: Apache config with starshipos-f18 and strshipos domains
Virtual hosts for starshipos-f18.com/.org (XWiki, Gitea, Nexus) with
Let's Encrypt SSL. Old strshipos.* domains redirect 301 to new domains.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-10-08 14:41:21 +00:00

19 lines
692 B
Plaintext

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName gitea.strshipos.com
ServerAlias gitea.strshipos.org
RewriteEngine On
RewriteCond %{SERVER_NAME} =gitea.strshipos.org
RewriteRule ^ https://gitea.starshipos-f18.org%{REQUEST_URI} [END,NE,R=permanent]
RewriteRule ^ https://gitea.starshipos-f18.com%{REQUEST_URI} [END,NE,R=permanent]
ErrorLog ${APACHE_LOG_DIR}/gitea-error.log
CustomLog ${APACHE_LOG_DIR}/gitea-access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/gitea.strshipos.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/gitea.strshipos.com/privkey.pem
</VirtualHost>
</IfModule>