Files
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

24 lines
788 B
Plaintext

# Gitea — gitea.starshipos-f18.com
<VirtualHost *:80>
ServerName gitea.starshipos-f18.com
ServerAlias gitea.starshipos-f18.org
ProxyPreserveHost On
ProxyRequests Off
RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L]
RewriteRule ^/(.*) http://127.0.0.1:3000/$1 [P,L]
ProxyPassReverse / http://127.0.0.1:3000/
RequestHeader set X-Forwarded-Proto "http"
ErrorLog ${APACHE_LOG_DIR}/gitea-starshipos-f18-error.log
CustomLog ${APACHE_LOG_DIR}/gitea-starshipos-f18-access.log combined
RewriteCond %{SERVER_NAME} =gitea.starshipos-f18.com [OR]
RewriteCond %{SERVER_NAME} =gitea.starshipos-f18.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>