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